doubleTap: ignore if captured by editor for selection

This commit is contained in:
jean-emmanuel 2018-09-01 08:27:59 +02:00
parent 2d7d7127eb
commit b2d900a1cf

View file

@ -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 &&