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

Disable zooming on button double tap #37

Closed
wants to merge 1 commit into from

Conversation

mrkeuz
Copy link

@mrkeuz mrkeuz commented Nov 1, 2021

Fix zooming on double-tap (#28). For button added touch-action: manipulation;
Other gestures like Multi-touch Zoom still working.
Tested on IOS.

Solution described here: https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action

@Unrud
Copy link
Owner

Unrud commented Nov 1, 2021

Why not set touch-action: none; on the HTML Element?

@mrkeuz
Copy link
Author

mrkeuz commented Nov 2, 2021

Just wanted minimal changes to original css design. Did not want broke something other. Also, touch-action: none; on HTML seems complete disables multi touch zoom and scroll via touch. Do you absolutely sure that is ok have UI without touch zooming and scrolling (just maybe there are some rare cases)?

@Unrud Unrud closed this in e2ee520 Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants