MurhafSousli / ngx-scrollbar

Custom overlay-scrollbars with native scrolling mechanism
https://ngx-scrollbar.netlify.app/
MIT License
618 stars 99 forks source link

Introduce droppedTop and droppedBottom, ... output events #527

Closed mlc-mlapis closed 8 months ago

mlc-mlapis commented 1 year ago

Feature Description

Having the opposite events (droppedTop, droppedBottom, droppedStart, and droppedEnd) to already existing reached... events would be excellent.

Use Case

When creating helper buttons to allow one-click actions to move to the top, bottom, start, and end scrolling positions, you need to know when to hide/show them. The reached events are helpful when you want to avoid showing them in the edge positions. But you'd like to show them again when the scroller is not in those edge positions. In such a case, the new dropped events would be perfect. Of course, including the new droppedOffset property.

MurhafSousli commented 8 months ago

@mlc-mlapis Its now available in v14 beta 7, feedback is appreciated!