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

the pointer interaction breaks on mobile when you drag vertically #2157

Open
Fil opened this issue Aug 30, 2024 · 2 comments
Open

the pointer interaction breaks on mobile when you drag vertically #2157

Fil opened this issue Aug 30, 2024 · 2 comments
Assignees
Labels
bug Something isn’t working

Comments

@Fil
Copy link
Contributor

Fil commented Aug 30, 2024

On mobile, pointing (with Plot.pointer) works if you tap on a point, and it also works if you touch and drag horizontally. But as soon as you drag 1 pixel vertically (or sideways), the page scrolls up/down, and the pointer interaction stops.

Not sure if this is a 100% correct description. Tested in an observable notebook (I'd want to try and replicate it on a framework page).

@Fil Fil added the bug Something isn’t working label Aug 30, 2024
@Fil Fil self-assigned this Aug 30, 2024
@mbostock
Copy link
Member

Not sure we want to change this; doing so would presumably prevent vertical scrolling if that is what you intended by touching and dragging and simply happened to touch the chart to start. We don’t want to create “dead areas” where you can’t scroll because the chart is stealing the input.

@Fil
Copy link
Contributor Author

Fil commented Aug 30, 2024

Yes that's an important design constraint. But it still feels slightly broken as is, when I compare against this smooth chart. In the NYT chart dragging does not break the interaction, and at the same time does not create a dead zone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

No branches or pull requests

2 participants