-
Notifications
You must be signed in to change notification settings - Fork 297
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
Change/extend zoom (direction/public api) #35
Comments
What browser are you using? |
Yeps, but I expected the opposite. See this metapher: Mousewheel down = Pull content to me = zoom-in |
Oh, that isn't documented, but it can be done by setting the zooming value to a negative value, for example zooming: -10. I'll think about how to design the zooming options to also accept methods. Thanks for your feedback. |
Ah nice. That works pretty well - thanks. So I encountered some behaviors while testing zoom:
|
I was kinda confused, when I mousewheeled down and my graph gets smaller. Somehow I expected a zoom-in. So I switched over to google maps and yep, that's where my habituation comes from. I don't know of other services right now, that have zoom implemented to check, but I'd think gmaps is the most and well known zoom service and most people are habituated with that direction of zoom, so it's a good reason to change it.
Anyway, is there some kind of public API, where I can set the zoom from outside? Like graph.zoom(value) ? Is there a chance to get the zoom value like graph.getZoom() or just via the MouseWheel event? What about boundaries, min and max zoom. With that one could build a slider around the graph.
The text was updated successfully, but these errors were encountered: