doubleTap: ignore if captured by editor for selection
This commit is contained in:
parent
72236a8426
commit
cbe43d38ec
1 changed files with 2 additions and 1 deletions
|
|
@ -6,11 +6,12 @@ module.exports = (element, callback)=>{
|
|||
|
||||
element.addEventListener('fast-click', (event)=>{
|
||||
|
||||
if (event.capturedByEditor) return
|
||||
|
||||
var tapTime = Date.now(),
|
||||
tapLength = tapTime - lastTapTime,
|
||||
eventData = event.detail
|
||||
|
||||
|
||||
if (
|
||||
|
||||
tapLength < DOUBLE_TAP_TIME &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue