Skip to content

Commit c330dc0

Browse files
committed
Update live-view.js
1 parent 1f9fe2f commit c330dc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

live-view/live-view.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,16 @@ function addBottomSwipeListener() {
441441

442442
// get caret range from point
443443

444+
// hide bottom float hitbox
445+
bottomWrapper.style.pointerEvents = 'none';
446+
444447
const pointX = e.changedTouches[0].clientX,
445448
pointY = e.changedTouches[0].clientY;
446449

447450
const range = document.caretRangeFromPoint(pointX, pointY);
448451

452+
bottomWrapper.style.pointerEvents = '';
453+
449454
// if range exists
450455
if (range) {
451456

0 commit comments

Comments
 (0)