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

Zoom behaviour not working in Firefox #52

Closed
jasondavies opened this issue Feb 16, 2011 · 7 comments
Closed

Zoom behaviour not working in Firefox #52

jasondavies opened this issue Feb 16, 2011 · 7 comments

Comments

@jasondavies
Copy link
Contributor

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

@mbostock
Copy link
Member

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.

@jasondavies
Copy link
Contributor Author

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...

@mbostock
Copy link
Member

Right, a click without moving the mouse would zoom (on mouseup) while a click and drag would pan.

@jasondavies
Copy link
Contributor Author

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.

@mbostock
Copy link
Member

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

http://beta.diymaps.com/

@jasondavies
Copy link
Contributor Author

Wow, the two-directional trackpad thing is awesome! Okay, totally sold on this now :-)

Now we just need to support those nifty pinch gestures :-)

@jasondavies
Copy link
Contributor Author

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants