From c78e5583e0a8879fdeeb64ca4a796b41d2c7c88a Mon Sep 17 00:00:00 2001 From: Per Liedman Date: Tue, 15 Aug 2017 14:53:39 +0200 Subject: [PATCH] Use same condition for adding as well as removing double tap listener (#5598) Fixes #5588 --- src/dom/DomEvent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dom/DomEvent.js b/src/dom/DomEvent.js index 01ae59ec..722c5872 100644 --- a/src/dom/DomEvent.js +++ b/src/dom/DomEvent.js @@ -136,7 +136,8 @@ function removeOne(obj, type, fn, context) { if (Browser.pointer && type.indexOf('touch') === 0) { removePointerListener(obj, type, id); - } else if (Browser.touch && (type === 'dblclick') && removeDoubleTapListener) { + } else if (Browser.touch && (type === 'dblclick') && removeDoubleTapListener && + !(Browser.pointer && Browser.chrome)) { removeDoubleTapListener(obj, id); } else if ('removeEventListener' in obj) {