-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use event.target in cases where _firstTarget has been removed from DOM #17
Conversation
Thanks @sgparrish . I can imagine that |
Thanks for the update. I think this makes sense. However I'm thinking about cases like when a DOM element is rendered but does not have a parent I was reading up on this StackOverflow question: https://stackoverflow.com/questions/5649534/html-element-is-attached-to-a-document This suggests using On a side note: I realize I just assumed that |
Oh yeah, Do you think I should include this as an option? I could imagine this breaks some behavior for someone. Re: side note: |
I think Do you think we should take care of a possible absence of the |
What do you think @sgparrish ? |
IE has been dead for over a year at this point. I think just bumping the major version should be sufficient to prevent any existing behavior breaking for consumers expecting If anyones starting new development intending it to be IE11 compatible (god help them) they could be directed to an older version? If it's actually a strong concern- I suppose the check could be modified to check |
Good point. Let's not spend too much effort on keeping it working in IE11. Instead, I'll simply publish it as a major, breaking change. Thanks for providing this fix! |
Published now in |
I have a use case in vis-timeline where _firstTarget ends up getting removed from the DOM during a pan event. This causes the pan to stop immediately because it no longer a descendent of the hammer root element.