Skip to content

Commit 70b34ee

Browse files
committed
Remove awful subtraction of origin from tap coords
1 parent 87ea768 commit 70b34ee

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

interact.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,13 +2358,6 @@
23582358
this.tapTime = tap.timeStamp;
23592359

23602360
for (i = 0; i < targets.length; i++) {
2361-
var origin = getOriginXY(targets[i], elements[i]);
2362-
2363-
tap.pageX -= origin.x;
2364-
tap.pageY -= origin.y;
2365-
tap.clientX -= origin.x;
2366-
tap.clientY -= origin.y;
2367-
23682361
tap.currentTarget = elements[i];
23692362
targets[i].fire(tap);
23702363

0 commit comments

Comments
 (0)