-
Notifications
You must be signed in to change notification settings - Fork 30
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
Pinch zoom does not work on MacOS when content is not scrollable or content is at scrollTop
0
#75
Comments
Thank you for such detailed description. |
Confirmed - the current implementation cannot detect trackpad-based zoom and thinks that is a wheel event. |
|
On my machine |
I'm not sure what you mean, can you clarify? I think apps like Figma check for Some info: https://kenneth.io/post/detecting-multi-touch-trackpad-gestures-in-javascript EDIT: Okay I think I understand what you're saying now. I don't think that has an effect on this particular check though? It would simply not prevent scrolling on your machine while the system zooms in/out, which doesn't seem like it matters. |
This issue has been marked as "stale" because there has been no activity for 2 months. If you have any new information or would like to continue the discussion, please feel free to do so. If this issue got buried among other tasks, maybe this message will reignite the conversation. Otherwise, this issue will be closed in 7 days. Thank you for your contributions so far. |
@atomiks, sorry for a very long follow-up, and thank you for the very detailed page linked. |
Released in v2.6.0 |
Can we update react focus on as well? :) theKashey/react-focus-on#93 |
Bug
Even with the
allowPinchZoom
prop toggled to true, there are 2 cases where I am unable to pinch zoom on the content within<RemoveScroll>
on MacOS using a trackpad (no issues on iOS and Android).I've detailed the 2 cases below, but do let me know if I am perhaps misunderstanding the
allowPinchZoom
prop or using it incorrectly in some way 😅1. Content is not scrollable
<RemoveScroll>
has no overflow and is not scrollable, I am unable to pinch zoomhttps://codesandbox.io/s/react-remove-scroll-non-scrollable-content-unable-to-pinch-zoom-diiuw3
Steps to repro:
2. Content is scrollable but is at
scrollTop
0<RemoveScroll>
has overflow, but has not been scrolled, I am unable to pinch zoom.https://codesandbox.io/s/react-remove-scroll-scrolltop-0-unable-to-pinch-zoom-ezirwf
Steps to repro:
The text was updated successfully, but these errors were encountered: