Use same condition for adding as well as removing double tap listener (#5598)

Fixes #5588
This commit is contained in:
Per Liedman 2017-08-15 14:53:39 +02:00 committed by Iván Sánchez Ortega
parent fe3a340f1c
commit c78e5583e0

View File

@ -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) {