Skip to content

Commit ede42ca

Browse files
committed
Update live-view.js
1 parent a9af8c0 commit ede42ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

live-view/live-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ function addBottomSwipeListener() {
441441

442442
// get caret range from point
443443

444-
const pointX = e.touches[0].clientX,
445-
pointY = e.touches[0].clientY;
444+
const pointX = e.changedTouches[0].clientX,
445+
pointY = e.changedTouches[0].clientY;
446446

447447
const range = document.caretRangeFromPoint(pointX, pointY);
448448

0 commit comments

Comments
 (0)