-
Notifications
You must be signed in to change notification settings - Fork 408
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
base: master
Are you sure you want to change the base?
improve detection when dragged element is a link #167
Conversation
|
||
let target = e.target | ||
do { | ||
if (target.nodeName === 'A') { |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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 😄
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
There was a problem hiding this comment.
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!
There was a problem hiding this 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?
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
There was a problem hiding this 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
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 |
Hi. Try to fetch this repo and build it yourself with |
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.