Skip to content

Commit bd90a2f

Browse files
committed
Use changedTouches instead of touches.
This is because the "touchend" event removes the touch from event.touches on iOS, but it can still be accessed via event.changedTouches.
1 parent c0e5b96 commit bd90a2f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3530,7 +3530,7 @@ function d3_svg_mousePoint(container, e) {
35303530
return [point.x, point.y];
35313531
};
35323532
d3.svg.touches = function(container) {
3533-
var touches = d3.event.touches;
3533+
var touches = d3.event.changedTouches;
35343534
return touches ? d3_array(touches).map(function(touch) {
35353535
var point = d3_svg_mousePoint(container, touch);
35363536
point.identifier = touch.identifier;

0 commit comments

Comments
 (0)