Skip to content

Commit

Permalink
fix #235; currentTarget initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jun 10, 2021
1 parent c774f9e commit e2f0e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ export default function() {

function mousedowned(event, ...args) {
if (touchending || !filter.apply(this, arguments)) return;
var g = gesture(this, args, true).event(event),
var currentTarget = event.currentTarget,
g = gesture(this, args, true).event(event),
v = select(event.view).on("mousemove.zoom", mousemoved, true).on("mouseup.zoom", mouseupped, true),
p = pointer(event, currentTarget),
currentTarget = event.currentTarget,
x0 = event.clientX,
y0 = event.clientY;

Expand Down

0 comments on commit e2f0e73

Please sign in to comment.