Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit ef35287

Browse files
committed
[DEV] Fix out and leave event
1 parent 7312a71 commit ef35287

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/inkPaper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,8 @@
10381038
if (pointerId === e.pointerId) {
10391039
e.preventDefault();
10401040

1041-
var coord = _getCoordinates(e, element);
1042-
self._up(coord.x, coord.y, coord.t);
1041+
var point = self._inkGrabber.getStroke().getPointByIndex(self._inkGrabber.getStroke().getLastIndexPoint());
1042+
self._up(point.x, point.y, point.t);
10431043
pointerId = undefined;
10441044
}
10451045
}, false);
@@ -1048,8 +1048,8 @@
10481048
if (pointerId === e.pointerId) {
10491049
e.preventDefault();
10501050

1051-
var coord = _getCoordinates(e, element);
1052-
self._up(coord.x, coord.y, coord.t);
1051+
var point = self._inkGrabber.getStroke().getPointByIndex(self._inkGrabber.getStroke().getLastIndexPoint());
1052+
self._up(point.x, point.y, point.t);
10531053
pointerId = undefined;
10541054
}
10551055
}, false);

0 commit comments

Comments
 (0)