This repository has been archived by the owner on Sep 2, 2020. It is now read-only.
Releases: bakkerjoeri/diascope
Releases · bakkerjoeri/diascope
v0.3.9
v0.3.8
v0.3.7
v0.3.6
v0.3.5
v0.3.4
💥 Breaking changes
- The options
onSlideStart
,onSlideEnd
andonSlide
have been renamed toslideStartCallback
,slideEndCallback
andslideCallback
respectively. - The methods
setOnSlideStart
,setOnSlideEnd
andsetOnSlide
have been renamed tosetSlideStartCallback
,setSlideEndCallback
andsetSlideCallback
respectively. - The method
panSlides
has been renamed topanWithDistance
.
🐛 Bugfixes
- #30 -
slideStartCallback
is now called when dragging starts.slideCallback
is now called when dragging.
💅🏼 Improvements
- #20 - Only start dragging on
touchstart
or a leftmousedown
that is not modified byalt
,cmd
,win
,ctrl
orshift
. - #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()
andprevious()
doesn't start panning when it is already happening. - Dragging now interrupts any active interrupts any active panning animation.
v0.3.3
🐛 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 thereel
element that contains them.
v0.3.2
v0.3.1
v0.3.0
💥 Breaking changes
- The option
duration
should now be defined in milliseconds rather than seconds.0.4
should become400
. - Animations are now handled via JavaScript, so you should remove any
transition: transform
style rules on thereel
element to prevent animation conflicts.
🚀 New features
- #7 - Touch & mouse dragging is here! The option
drag
istrue
by default, so you'll have it right away. - #6 - Set callback functions for
onSlideStart
,onSlideEnd
andonSlide
. You can pass the callbacks via the options with the parametersonSlideStart
,onSlideEnd
andonSlide
. Alternatively, you can use the API to set them after instantiation, using the methodssetOnSlideStart(onSlideStart)
,setOnSlideEnd(onSlideEnd)
andsetOnSlide(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.