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
This all works fine in the app. However, when I attempt to test this feature and make use of the scrollTo helper, each scroll event forces the debounce to wait for it's timeout to expire and trigger (effectively nullifying the purpose of the debounce).
Now, my question is whether it's possible for the helper to wait for the scroll event to occur in the browser without having to wait() for ember runloop (which is what seems to cause the debounce)?
The text was updated successfully, but these errors were encountered:
I'd like to add something. The repo is not that is unmaintained, but it was mostly an experiment to bikeshed the API of the so called Grand Testing Unification.
This addon was tested, the community receive it well and eventually ember-test-helpers adopted those helpers, with almost no changes: Ember Test Helpers API.
Not all helpers were moved there. scrollTo specifically wasn't but I think that it's worth proposing it and let the core team decide wether that helper makes sense.
I have a scrollEventHandler which is debouncing the scroll events so that I can create a scrollEnd-like feature:
scrollable-view.hbs
scrollable-view.js
This all works fine in the app. However, when I attempt to test this feature and make use of the
scrollTo
helper, each scroll event forces the debounce to wait for it's timeout to expire and trigger (effectively nullifying the purpose of the debounce).It seems that this is caused by the use of
wait
in the helper: https://github.com/cibernox/ember-native-dom-helpers/blob/master/addon-test-support/scroll-to.js#L16Now, my question is whether it's possible for the helper to wait for the scroll event to occur in the browser without having to
wait()
for ember runloop (which is what seems to cause the debounce)?The text was updated successfully, but these errors were encountered: