Use same condition for adding as well as removing double tap listener (#5598)
Fixes #5588
This commit is contained in:
parent
fe3a340f1c
commit
c78e5583e0
@ -136,7 +136,8 @@ function removeOne(obj, type, fn, context) {
|
|||||||
if (Browser.pointer && type.indexOf('touch') === 0) {
|
if (Browser.pointer && type.indexOf('touch') === 0) {
|
||||||
removePointerListener(obj, type, id);
|
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);
|
removeDoubleTapListener(obj, id);
|
||||||
|
|
||||||
} else if ('removeEventListener' in obj) {
|
} else if ('removeEventListener' in obj) {
|
||||||
|
Loading…
Reference in New Issue
Block a user