Skip to content

Commit

Permalink
Tweak coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
mihailik committed Dec 3, 2022
1 parent ae709c4 commit 99993c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/ContentEditableInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export default class ContentEditableInput {
}
})

var lastTouchStart;
var lastTouchStart
on(div, "touchstart", function () {
// do not force composition for double-tap, it breaks selection
if (lastTouchStart < +new Date() + DOUBLECLICK_DELAY) return
if (+new Date() < lastTouchStart + 400) return
lastTouchStart = +new Date()

var startPos = cm.indexFromPos(cm.getCursor('from'))
Expand Down

0 comments on commit 99993c6

Please sign in to comment.