Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Releases: bakkerjoeri/diascope

v0.3.9

15 Aug 14:01
Compare
Choose a tag to compare

💅🏼 Improvements

  • #18 - Force hardware acceleration by applying a 3D transformation on the reel.

v0.3.8

15 Aug 12:08
Compare
Choose a tag to compare

🐛 Bugfixes

  • #42 - Scrolling is no longer blocked.

v0.3.7

15 Aug 11:03
Compare
Choose a tag to compare

🐛 Bugfixes

  • #40 - Slide dragging is more consistent. Gaps in between slides are now also draggable.

v0.3.6

15 Aug 10:06
Compare
Choose a tag to compare

💅🏼 Improvements

  • #38 - After separating the touch and mouse handlers, the experience for both mouse users and touch users should be more predictable and consistent. For example, selecting text in stead of dragging should not happen anymore.

v0.3.5

01 Aug 16:20
Compare
Choose a tag to compare

🐛 Bugfixes

  • #36 - Fixed a bug that caused slide callbacks to not be executed.
  • slideStartCallback was wrongly called multiple times when checking if dragging should start.

v0.3.4

01 Aug 15:54
Compare
Choose a tag to compare

💥 Breaking changes

  • The options onSlideStart, onSlideEnd and onSlide have been renamed to slideStartCallback, slideEndCallback and slideCallback respectively.
  • The methods setOnSlideStart, setOnSlideEnd and setOnSlide have been renamed to setSlideStartCallback, setSlideEndCallback and setSlideCallback respectively.
  • The method panSlides has been renamed to panWithDistance.

🐛 Bugfixes

  • #30 - slideStartCallback is now called when dragging starts. slideCallback is now called when dragging.

💅🏼 Improvements

  • #20 - Only start dragging on touchstart or a left mousedown that is not modified by alt, cmd, win, ctrl or shift.
  • #21 - Only start dragging when touch- and mouse movement is mostly horizontal. With this improvement, vertical touch scrolling is no longer blocked when starting on the slider.
  • #22 - Calling next() and previous() doesn't start panning when it is already happening.
  • Dragging now interrupts any active interrupts any active panning animation.

v0.3.3

28 Jul 08:47
Compare
Choose a tag to compare

🐛 Bugfixes

  • #28 - The reel element no longer has to have the width of all slides, giving you more freedom in how you want to style the slider. Boundaries of the complete set of slides is now calculated using the slides themselves instead of the boundaries of the reel element that contains them.

v0.3.2

27 Jul 13:48
Compare
Choose a tag to compare

🚀 New features

  • #24 - Added a getVisibleSlides() method that returns all slides currently visible in the frame.

🐛 Bugfixes

  • #25 - Fixed an edge case where panning wasn't possible if there were only partially visible slides. The most visible slide is now selected as a starting point to pan from.

v0.3.1

26 Jul 15:08
Compare
Choose a tag to compare

🐛 Bugfixes

  • #16 - Links are no longer clicked after dragging.

v0.3.0

26 Jul 13:10
Compare
Choose a tag to compare

💥 Breaking changes

  • The option duration should now be defined in milliseconds rather than seconds. 0.4 should become 400.
  • Animations are now handled via JavaScript, so you should remove any transition: transform style rules on the reel element to prevent animation conflicts.

🚀 New features

  • #7 - Touch & mouse dragging is here! The option drag is true by default, so you'll have it right away.
  • #6 - Set callback functions for onSlideStart, onSlideEnd and onSlide. You can pass the callbacks via the options with the parameters onSlideStart, onSlideEnd and onSlide. Alternatively, you can use the API to set them after instantiation, using the methods setOnSlideStart(onSlideStart), setOnSlideEnd(onSlideEnd) and setOnSlide(onSlide). (See documentation)
  • #5 - Change the reel animation behaviour using a few predefined easing functions, or by defining your own animation cubic bezier curve. (See documentation)

🏡 Internal

  • Added MIT license.
  • The README now describes the few things that are expected of the HTML and CSS of the slider.