-
Notifications
You must be signed in to change notification settings - Fork 142
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
dbltap doesn't work on iPad #206
Comments
|
I don’t remember what the point of touch-action: none was… |
It looks like the iPad really wants to deduplicate touchstart: on https://observablehq.com/d/a6c2cfc4e1fad9ea as soon as a touchstart listener is registered, a double-tap creates only one event of each kind (touchstart, mousedown, mousemove, mouseup, click and so on). A solution might be to switch to Pointer Events (https://observablehq.com/@fil/pointer-events), where this doesn't happen. But it looks to me like an iOS (iPad 13.4.1) bug (?). |
Re: pencil dbl-tap, the issue is that a touchmove event is received, in which we reset g.taps to 0. This issue can be fixed by removing:
|
Another comment on touch-action… #188 (review) |
After some digging it appears that |
Testing d3-zoom (e.g. https://observablehq.com/@d3/zoom-canvas-rescaled or any other) on an iPad, a dbltap doesn't trigger x2 zooming—but a triple tap does. With the pencil it's never triggered, no matter how many "taps".
(On the iPhone dbltap works. )
I'm investigating but it would be nice if someone could confirm or infirm this observation.
The text was updated successfully, but these errors were encountered: