joelmukuthu / angular-snapscroll

Vertical scroll-and-snap functionality in angular
http://joelmukuthu.github.io/angular-snapscroll/
MIT License
56 stars 18 forks source link

Nested native scroll ignored #37

Closed jernejc closed 7 years ago

jernejc commented 7 years ago

Hi, thanks for the nice little plugin.

I'm experiencing a weird issue, where I have a nested element which is scrollable horizontally, but as soon as I enable the snap-scroll directive that scrolling triggers the snapTo animation instead of the scroll event on that element.

I tried stopping propagation of the scroll event and all swipe events on that element, but none of them seemed to trigger.

Here is an example: https://run.plnkr.co/FzfAfOrHjj8x5hHk/

Can edit here: https://plnkr.co/edit/JE5tbWXtWCIqqzWG2EIO?p=preview

Those images are horizontally scrollable until you enable the plugin, try removing the directive, to see how they're suppose to behave. Any idea how can I stop the event propagating?

Thanks Jernej

joelmukuthu commented 7 years ago

Hi Jernej. Thanks for reporting this, it's apparent that angular-wheelie does not differentiate between left/right and up/down mousewheel events. I'll work on a fix!

jernejc commented 7 years ago

Great, thanks

joelmukuthu commented 7 years ago

Fix is out with v1.0.1

jernejc commented 7 years ago

Thanks, will give it a go