fix zoom behavior for Android #984

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@mila76
mila76 commented Dec 31, 2012

fixed for touch zoom in browser without d3.event.scale like firefox and chrome for Android.
Need some other test but work.
close #920

@mila76 mila76 Update src/behavior/zoom.js
fixed for touch zoom in browser without d3.event.scale like firefox and chrome for Android
185a413
@sander
sander commented May 10, 2013

This also introduces pinch-to-zoom in Chrome 29 on Windows 8. The response is very choppy though, resulting in a ‘shaky’ graph in my case. Any idea what could cause this? Should there maybe be a threshold distance for actually changing the scale?

@jasondavies jasondavies added a commit that referenced this pull request Jun 7, 2013
@jasondavies jasondavies Add pinch-to-zoom support for Android.
Fixes #1169, #984.
49c3470
@jasondavies
Member

The response was jittery because the scale should be computed in screen coordinates, not in transformed coordinates (which change when you zoom, causing the jitteriness). See #1298 for a fix.

@jasondavies jasondavies closed this Jun 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment