Skip to content

v1.0.0

Compare
Choose a tag to compare
@guidobouman guidobouman released this 12 May 22:05
· 54 commits to master since this release
ed212f5

1.0.0 (2018-05-12)

Bug Fixes

  • activate panel when skipping the snap action (f68030b)
  • add missing events array on instance creation (e69e20d)
  • Allow direct descendant selector with scoped querySelector (9bcb296)
  • fix broken snapping because of undefined delay variable (3257eab)
  • Fix getElementsInContainerViewport not returning elements when larger than the viewport. (e414362)
  • Fix getTargetScrollTop not working for body (874efc1)
  • Make body in demo full height (af95332)
  • only bind passive events when supported (8ad9ebf)
  • only take directionThreshold into account when actually snapping (079f390)
  • Prevent duplicate PanelSnap instances on the same container (cf4ea6a)
  • Run new build that includes getScrollingElement (0605675)
  • snap to last panel in viewport when navigating up (9c00c2a)
  • Stop animation when a user interacts with the page (80a0f96)

chore

  • drop support for bower (3fd757e)
  • oficially rename to PanelSnap (7d75a69)

Features

  • Add basic snapping functionality. (374ded2)
  • add cross-browser & -platform interaction detection (21bcbe9)
  • add delay support (1c87367)
  • Add elementFillsContainer utility function (3f15f3a)
  • add enable & disable methods (dcf6db9)
  • add event binding to panelSnap (b3e8678)
  • Add getElementsInContainerViewport utility function (aa76466)
  • add horizontal snapping to PanelSnap (913cde7), closes #7
  • add horizontal support to getTargetScrollOffset utility method (896bbc3)
  • add missing duration setting (6c6d83d)
  • Add snapToPanel method (a9ba05c)
  • Add the option to find scrollTop of element bottom (08e2ed7)
  • drop support for offset (84a8205)
  • First version of findSnapTarget method, not fully working yet (ae36726)
  • Homogenize exports of PanelSnap (507856d)
  • Let PanelSnap snap to bottom (f9338fc)
  • make panel target selection less naive (d1a514e)
  • Prevent snapping when in large panel (e2de722)
  • remove old jQuery.panelSnap setup in favor of new PanelSnap setup (3efee66)
  • Setup a first panelSnap without jQuery (7808c2b)
  • take direction into account when snapping back to active panel (1992088)

BREAKING CHANGES

  • The plugin is renamed to PanelSnap to reflect the decoupling from jQuery. PanelSnap
    is now framework agnostic. Install through npm install panelsnap. The jQuery repo publication is
    dropped in the process. This might get added back once a new adapter is in place.
  • Bower is no longer supported. Use npm instead.
  • jQuery.panelSnap is no longer supported in v1.0. An adapter will be provided in the
    near future.
  • The option slideSpeed has been renamed to duration. Also, the default value for duration is
    now 300ms, instead of 200ms.
  • Offset is no longer supported in PanelSnap. This can be taken into account inside
    the panels.
  • The old activate event is now called activatePanel, more in line with the other
    (more descriptive) event names. Event binding now happens with the
    panelSnapInstance.on('eventName', function) method. Instead of supplying callback functions during
    initialisation.