Open viperphase1 opened 5 years ago
You can always capture the events and stop the propagation. Would not make any sense to not propagate them as a default.
Stopping propagation on the parent breaks perfect scrollbar.
It looks that if event does not reach the document - perfect scrollbar will not work.
For example if to stop propagation of mousemove in any parent - it breaks scrollbar movement: https://stackblitz.com/edit/ngx-perfect-scrollbar-5dv1df
Yes you can not stop the scroll events, but click event can be stopped.
I want to use the perfect scrollbar directive on a dropdown select list. The dropdown opens and closes whenever something inside is clicked. Since the directive adds elements inside the parent container and click events are allowed to bubble up to the parent I can't keep the dropdown open while scrolling. I consider this to be a bug/unwanted behavior.