-
Notifications
You must be signed in to change notification settings - Fork 1
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
Smooth zooming while key-down #21
Comments
Actually, there is already a well functioning addon for zooming with scrolling wheel called Scroll Zoom, which works perfectly in conjunction with Scrollanywhere. https://addons.mozilla.org/hu/firefox/addon/scroll-zoom/?src=search |
Hi, are you the guy that requested this feature? Is this what you meant? Because there are two types of zooming:
I would like to implement the phone-like, while the addon you send does only the desktop zoom (which is however trivial to implement). Actually I can do both since the desktop is just one line of code. |
No, I’m not him, just indicated that there’s a desktop-like zooming addon in case you don’t know about it. The phone one is interesting, although I think this content is quite different than the rest, so it would better suit for a new, seperate addon. |
Well, scrolling and zooming is actually tied together, especially on your phone where it's natural to scroll and zoom and scroll more using the same "fingers" :D. I have a feeling this could be useful on desktop as well if designed well. But it's similar situation as with the "scrollbar width" feature and now I'm glad it's part of this addon :) EDIT: |
There is an idea to add smooth zooming capabilities to this extension.
Basically when defined key is down, performing the scrolling action (with scrolling button) will do the smooth zoom in/out instead.
To implement this, I could use transform scale(x) and maybe also with transform-origin set to point where mouse was pressed.
For example:
If I apply it to the root HTML element, it should zoom everything correctly.
It seems to be doable, I will look into it before the next release.
The text was updated successfully, but these errors were encountered: