Skip to content

Improper clicks on list items while scrolling  #1015

@tmiskin

Description

@tmiskin

List items are clicked while scrolling because of the 'touchcancel' event. This is the issue reported multiple times on the forums. This event is essentially an error event most commonly fired in Android but is seemingly random and will basically hijack the touch event from touch move. This event was being treated as a click in tapPolyfill. I need to fork this to make pull requests some time, but the place I fixed it was line 50 - https://github.com/driftyco/ionic/blob/master/js/utils/tap.js

Changed it to if( isRecentTap(e) || e.type === 'touchcancel') {

This is exactly like the hammer.js issue here - hammerjs/hammer.js#339

And fixed here - hammerjs/hammer.js@1eaef6b

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions