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
With the current functionality, you can interact with ember-collection's scroll event. But this requires you to completely override the default scroll-change action.
The docs show the following example as a way to maintain current scroll behavior:
As a result, you end up losing some functionality when overriding this function. I tried to do this and ended up with some weird behavior (studdering scrolls at certain zoom levels), so I had to build my own scroll listener.
I propose we build a hook that can be optionally used when calling ember-collection. Then, ember-collection's scroll listener will call this hook function if present and still run its own code.
I'd be happy to create a PR for this if you feel it is a good idea.
The text was updated successfully, but these errors were encountered:
@Luiz-N - Not really... I'm looking for the ability to hook into the existing scroll event, so you can run a custom function when the user scrolls the list.
With the current functionality, you can interact with
ember-collection
's scroll event. But this requires you to completely override the defaultscroll-change
action.The docs show the following example as a way to maintain current scroll behavior:
... but in reality, there is more going on in the default scrollChange event.
As a result, you end up losing some functionality when overriding this function. I tried to do this and ended up with some weird behavior (studdering scrolls at certain zoom levels), so I had to build my own scroll listener.
I propose we build a hook that can be optionally used when calling
ember-collection
. Then,ember-collection
's scroll listener will call this hook function if present and still run its own code.I'd be happy to create a PR for this if you feel it is a good idea.
The text was updated successfully, but these errors were encountered: