ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Prevent ng-click When Scrolling

Open calendee opened this issue 12 years ago • 24 comments

When scrolling a list, items with ng-click are firing the click event. They really should not fire as this was a scroll rather than a click / tap.

Example : http://codepen.io/calendee/pen/yqefG

Reference : http://forum.ionicframework.com/t/disable-click-onscroll-list/1334

calendee avatar Mar 07 '14 23:03 calendee

I'm seeing the issue, too. Tested on iPhone 6 with iOS 10.2.1 I am using ionic bundle version is 1.3.2. I am also using [email protected] plugin.

For a workaround, I am using the solution offered in the following issue comment: https://github.com/driftyco/ionic/issues/1438#issuecomment-55434818

But the above workaround works only for list items. Of course it can be expanded to other elements, but you must bind the event handler to every clickable element in the page. Because every clickable element receives the click event when scrolling.

I am looking for a general approach that will apply to the whole application without code repetition.

Any ideas?

EmreErdogan avatar Jan 27 '17 13:01 EmreErdogan

can you all please help it out to find solution

nidhi42 avatar Dec 29 '17 12:12 nidhi42

The following solution may help: https://github.com/ionic-team/ionic/issues/1438#issuecomment-293602364

EmreErdogan avatar Jan 01 '18 21:01 EmreErdogan

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 01 '18 13:09 ionitron-bot[bot]