You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
Expected behavior
I would like to have a new option, called "ngx-scroll-to-visibility-based", or something like this.
By default it should be false. If it's set to true, scroll should happen only if not the entire target is visible already.
The condition to do the actual scroll is supposed to be something like this:
What is the motivation / use case for changing the behavior?
Imagine an accordion-style hierarchical menu. The user clicks on a parent menu: this event closes up the previously opened submenu items and opens (slides down for example) the current parent menu's submenu items. At this point it can easily happen that the opened items get out of the view. In this case we want to scroll to the freshly opened menu items. On the other hand if the entire freshly opened submenu items are visible without scroll, we don't want the site to do any scroll.
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Expected behavior
I would like to have a new option, called "ngx-scroll-to-visibility-based", or something like this.
By default it should be false. If it's set to true, scroll should happen only if not the entire target is visible already.
The condition to do the actual scroll is supposed to be something like this:
What is the motivation / use case for changing the behavior?
Imagine an accordion-style hierarchical menu. The user clicks on a parent menu: this event closes up the previously opened submenu items and opens (slides down for example) the current parent menu's submenu items. At this point it can easily happen that the opened items get out of the view. In this case we want to scroll to the freshly opened menu items. On the other hand if the entire freshly opened submenu items are visible without scroll, we don't want the site to do any scroll.
The text was updated successfully, but these errors were encountered: