Commit 7ce88c1
committed
Fix combined mousewheel/drag gesture.
During a combined zoom/pan gesture, controlled via simultaneous use of
the mousewheel and dragging, it is possible for the drag to finish
before the use of the mousewheel finishes. The mousewheel gesture is
deemed to be finished if 50ms passes with no mousewheel event.
Although the "zoomend" event is only dispatched when *both* gestures
have finished, the variable "center0" was being reset when *either*
gesture was finished, causing an error in the mousewheel handler.
Fixes d3#2205.1 parent 3abb001 commit 7ce88c1
3 files changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1463 | 1463 | | |
1464 | 1464 | | |
1465 | 1465 | | |
1466 | | - | |
1467 | | - | |
| 1466 | + | |
1468 | 1467 | | |
1469 | 1468 | | |
1470 | 1469 | | |
| |||
0 commit comments