Skip to content

Commit

Permalink
in the case of d3-zoom's dbltap, we need to look at changedTouches[0]…
Browse files Browse the repository at this point in the history
… to know where the touchend happened, not touches[0]
  • Loading branch information
Fil committed May 14, 2020
1 parent 5017419 commit e84c95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pointer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function pointer(event, node = event.currentTarget) {
if (event instanceof TouchEvent) event = event.touches[0];
if (event instanceof TouchEvent) event = event.touches[0] || event.changedTouches[0];
if (node) {
var svg = node.ownerSVGElement || node;
if (svg.createSVGPoint) {
Expand Down

0 comments on commit e84c95f

Please sign in to comment.