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

d3.event.sourceEvent.target in safari mobile #30

Closed
gshrman opened this issue Oct 25, 2016 · 1 comment
Closed

d3.event.sourceEvent.target in safari mobile #30

gshrman opened this issue Oct 25, 2016 · 1 comment

Comments

@gshrman
Copy link

gshrman commented Oct 25, 2016

There seems to be a discrepancy between desktop browsers and safari mobile browser when calculating d3.event.sourceEvent.target during a drag event. See example below:

https://jsfiddle.net/5ngf178o/10/

@mbostock
Copy link
Member

Per https://www.w3.org/TR/touch-events/#touchevent-interface:

target of type EventTarget, readonly
The EventTarget on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element.

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

No branches or pull requests

2 participants