mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tap): prevent possible click error in specifc android devices. Fixes #2235
This commit is contained in:
@@ -550,7 +550,8 @@ function tapHasPointerMoved(endEvent) {
|
||||
}
|
||||
var endCoordinates = ionic.tap.pointerCoord(endEvent);
|
||||
|
||||
var hasClassList = !!(endEvent.target.classList && endEvent.target.classList.contains);
|
||||
var hasClassList = !!(endEvent.target.classList && endEvent.target.classList.contains &&
|
||||
typeof endEvent.target.classList.contains === 'function');
|
||||
var releaseTolerance = hasClassList && endEvent.target.classList.contains('button') ?
|
||||
TAP_RELEASE_BUTTON_TOLERANCE :
|
||||
TAP_RELEASE_TOLERANCE;
|
||||
|
||||
Reference in New Issue
Block a user