Skip to content

Commit 2a4277d

Browse files
committed
Remove mouse listeners from intended target.
Related d3#1381.
1 parent 95bc9f4 commit 2a4277d

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

d3.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,8 @@ d3 = function() {
12321232
}
12331233
}
12341234
function touchstarted() {
1235-
var target = this, event_ = event.of(target, arguments), touches = d3.touches(target), now = Date.now(), name = "zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove." + name, touchend = "touchend." + name, w = d3.select(d3_window).on(touchmove, moved).on(touchend, ended).on(mousedown, null).on(mousemove, null), dragRestore = d3_event_dragSuppress();
1235+
var target = this, event_ = event.of(target, arguments), touches = d3.touches(target), now = Date.now(), name = "zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove." + name, touchend = "touchend." + name, w = d3.select(d3_window).on(touchmove, moved).on(touchend, ended), dragRestore = d3_event_dragSuppress();
1236+
d3.select(target).on(mousedown, null).on(mousemove, null);
12361237
scale0 = scale;
12371238
translate0 = {};
12381239
distance0 = 0;

0 commit comments

Comments
 (0)