Skip to content

Commit

Permalink
dbltap results in a touchend event being passed to dblclicked
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed May 28, 2020
1 parent 0c6be96 commit c0fbb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export default function() {
function dblclicked(event, ...args) {
if (!filter.apply(this, arguments)) return;
var t0 = this.__zoom,
p0 = pointer(event),
p0 = pointer(event.changedTouches ? event.changedTouches[0] : event, this),
p1 = t0.invert(p0),
k1 = t0.k * (event.shiftKey ? 0.5 : 2),
t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, args), translateExtent);
Expand Down

0 comments on commit c0fbb0f

Please sign in to comment.