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

Support for zooming based on mouse pointer & scroll wheel for desktop platforms #35

Closed
starry-shivam opened this issue Jul 25, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@starry-shivam
Copy link

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.

@starry-shivam starry-shivam added the enhancement New feature or request label Jul 25, 2024
@panpf
Copy link
Owner

panpf commented Jul 25, 2024

Will consider it, please look forward to it

@panpf
Copy link
Owner

panpf commented Aug 3, 2024

@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

@starry-shivam
Copy link
Author

Wow thanks! I'll give it a try

@panpf
Copy link
Owner

panpf commented Aug 9, 2024

Wow thanks! I'll give it a try

Hi, have you tried it? How was your experience?

@starry-shivam
Copy link
Author

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 :)

@panpf
Copy link
Owner

panpf commented Aug 16, 2024

Available in v1.1.0-alpha06

@panpf panpf closed this as completed Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants