Releases: DockYard/ember-in-viewport
viewportSpy (in fallback mode)
This release fixes an issue with the previous version – the viewportSpy
option was completely broken before because it would unbind all listeners for all Components
with the Mixin. This no longer happens, and viewportSpy
works as expected when requestAnimationFrame
is not available.
More work needs to be done to achieve the same result in rAF
mode.
Changelog
First release
This ember-cli
addon adds a simple, highly performant Ember Mixin to your app. This mixin, when added to a View
or Component
(collectively referred to as Components
), will allow you to check if that Component
has entered the browser's viewport. By default, the Mixin uses the requestAnimationFrame
API if it detects it in your user's browser – failing which, it fallsback to using the more resource heavy Ember run loop and event listeners.
This software will not be ready for production use until 1.0.0
.