-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support for zooming based on mouse pointer & scroll wheel for desktop platforms #35
Comments
Will consider it, please look forward to it |
@starry-shivam According to the function of the mouse rolling wheel and pointer position, it has been submitted to the DEV branch. Welcome to download the code of the DEV branch and run the desktop version of SAMPLE to experience it, and then feedback me your feelings and suggestions |
Wow thanks! I'll give it a try |
Hi, have you tried it? How was your experience? |
Yes, I've tried the desktop sample in dev branch, it seems work as i expected :) |
Available in v1.1.0-alpha06 |
Currently, zooming only happens when double-clicking on a specific section of the image. It would be great if zooming via mouse pointer + scroll wheel was also supported (like in the Windows Photos app). As far as I know, the only way to do it right now is by calling
ZoomState.scale(...)
, somehow detecting the scroll event & values and pointer position for the focal point. However, I don't yet know the bounds of this method or how to implement it properly by myself.The text was updated successfully, but these errors were encountered: