Skip to content

Commit 99993c6

Browse files
authored
Tweak coding style
1 parent ae709c4 commit 99993c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/input/ContentEditableInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export default class ContentEditableInput {
5959
}
6060
})
6161

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

6868
var startPos = cm.indexFromPos(cm.getCursor('from'))

0 commit comments

Comments
 (0)