- Improve performance of
enableAll
. (Issue #454) - Handle edge case bug where Waypoint initialization during a specific part of iOS scroll bounce would cause an immediate trigger of it. (Issue #499)
- Maintain
window
Context/resize-handler even when there are only non-window-context waypoints. (Issue #442)
- Allow Sticky option
wrapper
to accept false, which will not create a wrapper and instead use the preexisting parent element. (Pull #416) - Waypoints that are immediately triggered on creation because they've already passed their trigger point now run their handlers on the next animation frame. This contains Zalgo. (Issue #384)
- Pass the jQuery object of items added during an Infinite page load to the
onAfterPageLoad
callback. (Pull #398) - Add
enabled
option,enable
anddisable
methods to the Inview shortcut (Pull #406) - Make the Inview instance
this
within the callbacks, rather than the invdividual underlying waypoints. (Issue #412) - Account for changes to jQuery 3 around calling
offset
on the window. (Pull #430) - Add
context
option to Inview. (Issue #433)
- Fix bad
isWindow
checks causing errors in IE8-. (Issue #372)
- Add
Waypoint.disableAll
andWaypoint.enableAll
methods. - Fix Illegal Invocation errors stemming from non-window context use of
requestAnimationFrame
. (Pull #366) - Keep disabled waypoints from triggering debug script errors. (Pull #365)
- Allow Infinite Scroll items to be root elements in the AJAX response. (Pull #361)
- In debug script, detect display none and fixed positioning defined in CSS.
- Add semicolons to the end of built files to aid in clean concatenation. (Issue #353)
- Remove hard jQuery dependency. Create builds for jQuery, Zepto, and no DOM framework. (Issue #282)
- Expose
Waypoint
andContext
classes. (Issue #281) - Add
Group
class andgroup
option for grouping waypoints. Makecontinuous
option work within these groups. (Issue #264) - Add Inview shortcut. (Issue #131)
- Extend
continuous
option to cover refreshes. (Issue #166) - Throttle resize and scroll handlers using
requestAnimationFrame
instead of a set millisecond timeout. Fallback to the old 60 FPSsetTimeout
throttle for unsupported browsers. (Issue #242) - Add debugging script for diagnosing common problems.
- Remove
triggerOnce
option. - Add
viewportWidth
utility method. - Remove all traces of CoffeeScript.
- Allow sticky users to define which direction the stuck class shold be applied. (Issue #192)
- Fix bug where short content on a large screen could cause the infinite shortcut to stall after the first page load. (Issue #207)
- Make
unsticky
safe to use on any element. Previously it would unwrap the parent even if the element had never hadsticky
called on it or already hadunsticky
called previously. (Issue #225) - Fix bug that would cause handlers to be overwritten when trying to reuse an options object. (Issue #253)
- Remove "More" link when infinite shortcut reaches last page. (Issue #260)
- Fix use of
this
instead ofwindow
, causing Browserify to fail. (Issue #262) - Stop using deprecated jQuery
load
method. (Issue #283)
- Fix enable, disable, and destroys calls not chaining the jQuery object. (Issue #244) (Thanks @robharper)
- Fix destroy not unregistering internal waypoint references if underlying node has been removed from the document, causing memory leaks. (Issue #243)
- Add "unsticky" function for sticky shortcut. (Issue #130)
- Exit early from Infinite shortcut if no "more" link exists. (Issue #140)
- Delay height evaluation of sticky shortcut wrapper. (Issue #151)
- Fix errors with Infinite shortcut's parsing of HTML with jQuery 1.9+. (Issue #163)
- Add AMD support. (Issue #116)
- Work around iOS issue with cancelled
setTimeout
timers by not using scroll throttling on touch devices. (Issue #120) - If defined, execute
handler
option passed to sticky shortcut at the end of the stuck/unstuck change. (Issue #123)
- Lower default throttle values for
scrollThrottle
andresizeThrottle
. - Fix Issue #104: Pixel offsets written as strings are interpreted as %s.
- Fix Issue #100: Work around IE not firing scroll event on document shortening by forcing a scroll check on
refresh
calls.
- Rewrite Waypoints in CoffeeScript.
- Add Sticky and Infinite shortcut scripts.
- Allow multiple Waypoints on each element. (Issue #40)
- Allow horizontal scrolling Waypoints. (Issue #14)
- API additions: (#69, 83, 88)
- prev, next, above, below, left, right, extendFn, enable, disable
- API subtractions:
- remove
- Remove custom 'waypoint.reached' jQuery Event from powering the trigger.
- $.waypoints now returns object with vertical+horizontal properties and HTMLElement arrays instead of jQuery object (to preserve trigger order instead of jQuery's forced source order).
- Add enabled option.
- Actually fix the post-load bug in Issue #28 from v1.1.3.
- Fix potential memory leak by unbinding events on empty context elements.
- Make plugin compatible with Browserify/RequireJS. (Thanks @cjroebuck)
- Add handler option to give alternate binding method.
- Fix cases where waypoints are added post-load and should be triggered immediately.
- Fixed error thrown by waypoints with triggerOnce option that were triggered via resize refresh.
- Fixed bug in initialization where all offsets were being calculated as if set to 0 initially, causing unwarranted triggers during the subsequent refresh.
- Added
onlyOnScroll
, an option for individual waypoints that disables triggers due to an offset refresh that crosses the current scroll point. (All credit to @knuton on this one.)
- Moved the continuous option out of global settings and into the options object for individual waypoints.
- Added the context option, which allows for using waypoints within any scrollable element, not just the window.
- Moved scroll and resize handler bindings out of load. Should play nicer with async loaders like Head JS and LABjs.
- Fixed a 1px off error when using certain % offsets.
- Added unit tests.
- Added $.waypoints('viewportHeight').
- Fixed iOS bug (using the new viewportHeight method).
- Added offset function alias: 'bottom-in-view'.
- Initial release.