Skip to content

Commit ccb585e

Browse files
authored
Merge pull request #3 from RWAP/RWAP-patch-1
Update for Apple Pencil
2 parents e922197 + 8c747e7 commit ccb585e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: jquery.ui.touch-punch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
if ((Math.abs(endPos.x - this._startPos.x) < 10) && (Math.abs(endPos.y - this._startPos.y) < 10)) {
154154

155155
// If the touch interaction did not move, it should trigger a click
156-
if (!this._touchMoved) {
156+
if (!this._touchMoved || event.originalEvent.changedTouches[0].touchType === 'stylus') {
157157
// Simulate the click event
158158
simulateMouseEvent(event, 'click');
159159
}

0 commit comments

Comments
 (0)