Skip to content

Commit 9b747de

Browse files
committed
Merge branch 'fix-zoom-touch-chrome' into 3.4.12
2 parents 056c488 + 6b61f60 commit 9b747de

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

d3.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,10 +1385,11 @@
13851385
}
13861386
}
13871387
function touchstarted() {
1388-
var that = this, dispatch = event.of(that, arguments), locations0 = {}, distance0 = 0, scale0, zoomName = ".zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove" + zoomName, touchend = "touchend" + zoomName, targets = [], subject = d3.select(that).on(mousedown, null).on(touchstart, started), dragRestore = d3_event_dragSuppress();
1388+
var that = this, dispatch = event.of(that, arguments), locations0 = {}, distance0 = 0, scale0, zoomName = ".zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove" + zoomName, touchend = "touchend" + zoomName, targets = [], subject = d3.select(that), dragRestore = d3_event_dragSuppress();
13891389
d3_selection_interrupt.call(that);
13901390
started();
13911391
zoomstarted(dispatch);
1392+
subject.on(mousedown, null).on(touchstart, started);
13921393
function relocate() {
13931394
var touches = d3.touches(that);
13941395
scale0 = view.k;

0 commit comments

Comments
 (0)