cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.81k forks source link

click event triggered after scrollend #542

Open JonnyBGod opened 10 years ago

JonnyBGod commented 10 years ago

With mouse on browser when you "click scroll" when released if the child has a click event associated it will be triggered.

Expected behavior would be to not propagate click event after scroll end.

cubiq commented 10 years ago

do you use click:true?

JonnyBGod commented 10 years ago
myScrollOptions = {
    snap: false,
    scrollbars: 'custom',
    interactiveScrollbars: true,
    preventDefault: false
}
JonnyBGod commented 10 years ago

I have tried with multiple different configs and this behavior persisted.

cubiq commented 10 years ago

preventDefault: false should be the culprit

JonnyBGod commented 10 years ago

Still the same behavior.

Probably a problem solvable by stop propagation on scrollEnd. Will give it a try.

Lab43 commented 10 years ago

I'm having the same problem. Did you ever solve this @JonnyBGod?