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

[Feature Request] Implement smart zoom #5

Open
thisiscam opened this issue Aug 9, 2024 · 2 comments
Open

[Feature Request] Implement smart zoom #5

thisiscam opened this issue Aug 9, 2024 · 2 comments

Comments

@thisiscam
Copy link

Hi!

I wonder if the author would consider implementing this feature: automatically zoom to an element / area by triggering a keyboard or mouse event (e.g. double click middle scrollwheel, for example)

This is to replicate the "smart zoom" feature implemented in Safari for macOS with magic mouse. There are various smart zoom chrome extensions out there, but none work correctly. This repo seems to implement the pinch zoom pretty close to perfect so that I think a smart zoom should be possible to implement as well.

One can reference this code to infer where and how much to zoom. I think the rest is pretty much just calling the zoom function already provided by the code in this repo and it should work!

@nizioleque
Copy link
Owner

Hi, thank you for the suggestion. This sounds cool and I would definitely like to implement that, but unfortunately I don't have time to work on the extension so it might take a couple of months.

In the meantime, feel free to try doing it yourself 🙂. I'd be happy to help if you have any questions.

@thisiscam
Copy link
Author

Hi, thank you for the suggestion. This sounds cool and I would definitely like to implement that, but unfortunately I don't have time to work on the extension so it might take a couple of months.

In the meantime, feel free to try doing it yourself 🙂. I'd be happy to help if you have any questions.

I did a simple attempt yesterday. There are quite some code I haven't tried to understand, but it seems to work! Perhaps you (or someone) can try it and give some feedback ?

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

No branches or pull requests

2 participants