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
Zoom behaviour not working in Firefox #52
Comments
Cool example! I'd consider adding a border or background to the visualization so that the reinterpretation of mousewheel (for scrolling) is more obvious. I've also been thinking that, given the trouble of mousewheel, maybe we should use click to zoom (rather than dblclick), in conjunction with a smooth animation? Maybe toggle between two zoom levels rather than arbitrary zooming. |
Border added now, thanks! The problem with click to zoom is that it kind of conflicts with drag to pan. I guess you can distinguish a click from a drag though. I'll think about it... |
Right, a click without moving the mouse would zoom (on mouseup) while a click and drag would pan. |
Sounds good. I think people may still want the mousewheel behaviour for arbitrary zooming though. Just having two zoom levels might be a bit restrictive? I guess my mathematical demos are more suited for arbitrary zooms, but actual data visualisations may only need two zoom levels. |
Right, well you could support multiple discrete zoom levels, with each click zooming in further (and shift-click zooming out). But yeah, maybe we want different behaviors, or different modes on the zoom behavior. I really, really like this method of interaction (two-directional trackpad mousewheel for panning): |
Wow, the two-directional trackpad thing is awesome! Okay, totally sold on this now :-) Now we just need to support those nifty pinch gestures :-) |
Well, I'm not sure pinch gestures on trackpads are that usable. Of course, if we detect an iDevice in use it's a different matter. |
The new zoom behaviour is very nice :-) I'm already using it in http://www.jasondavies.com/poincare-disc/ - but the scroll-to-zoom behaviour doesn't seem to work in Firefox 4.0b11. The example in
examples/zoom-pan/zoom-pan-transform.html
also doesn't work. (Drag-to-pan works fine).The text was updated successfully, but these errors were encountered: