Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve detection when dragged element is a link #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cameronbraid
Copy link

I have a few cases where the A tag detection is not working. It is usually a SPAN or P tag within the A tag that is the event target. This PR looks up the dom tree to find an A tag, and fixes the issue.


let target = e.target
do {
if (target.nodeName === 'A') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've suggest to use nodeName.toLowerCase() and compare with a. You never know what case will be returns (IE eg)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point :) I promise to come here and merge all relevant PRs. One day. To be honest I do not care about Siema that much anymore...

https://twitter.com/pawelgrzybek/status/1045199798838669312

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I can be a maintainer? SIEMA is so awesome for me 😄

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do a Skype chat one day or catch up in Warsaw about it? Short answer - yes :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX issues aside, was there an update on this? Unfortunately, some of us still end up having to build carousels!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can i edit siema.js from src, and be able to use it?

The unminified siema doesnt work, only min.js

So i cant use your changes, and i really need to try that

I want to compile a new siema with your modification, im using v1.51 but have the link-open-bug when sliding link content

Copy link

@xinxilas xinxilas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can i edit siema.js from src, and be able to use it?

If i use the unminified siema it doesnt work

I want to compile a new siema with your modification, im using v1.51 but have the link-open-bug when sliding link content

@xinxilas
Copy link

I have a few cases where the A tag detection is not working. It is usually a SPAN or P tag within the A tag that is the event target. This PR looks up the dom tree to find an A tag, and fixes the issue.

How can i edit siema.js from src, and be able to use it?

The unminified siema doesnt work, only min.js

So i cant use your changes, and i really need to try that

I want to compile a new siema with your modification, im using v1.51 but have the link-open-bug when sliding link content

@pawelgrzybek
Copy link
Owner

Hi.

Try to fetch this repo and build it yourself with npm run build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants