Skip to content

Releases: gpoitch/viewprt

4.2.0

01 Mar 15:51
Compare
Choose a tag to compare

Use the passive option for scroll/resize event listeners

4.1.0

23 Mar 20:59
Compare
Choose a tag to compare
  • Feature: Add individual offsetX / offsetY options #25

4.0.0

14 Sep 15:44
Compare
Choose a tag to compare

BREAKING:
Replaced onMaximized callback with new onFit callback on PositionObserver. See #20

3.0.0

04 Sep 20:51
Compare
Choose a tag to compare

BREAKING: Added specific browser support which wasn't noted before. Must support requestAnimationFrame MutationObserver, Map. 93% of global browser users support these including IE 11

2.2.0

25 May 01:26
Compare
Choose a tag to compare

Adds horiztonal scrolling support. Thanks @tholman!

2.1.1

29 Jan 16:07
Compare
Choose a tag to compare
  • [feature]: PositionObserver: add onMaximized option
  • [bug fix]: ElementObserver: allow onEnter to be called multiple times when onExit isn't provided
  • [change]: UMD name is viewprt not Viewprt

2.0.0

20 Jun 19:21
Compare
Choose a tag to compare
  • Added scroll direction detection ('down'/'up')
  • API: callbacks now all contain a second param viewportState which is an object containing the viewport state at the time of the callback { width, height, y, yDirection }