Releases: xiaolin/react-image-gallery
Releases · xiaolin/react-image-gallery
Bug Fix
Enhancement and bug fixes
Feature enhancements
- added
additionalClass
prop on root node of the component - added option to change
translate3d
totranslate
css using propuseTranslate3D
(default true) - added
bulletClass
andbulletOnClick
attribute on images - added support for
<source>
and<picture>
for images - other bug fixes and enhancements
Improve mobile swipe gesture
Fixes #229, and overall swipe experience when scrolling up/down vs left/right.
Enhancement, and bug fixes
- Fix bug with swipes not working despite a flick
- Lock swiping while slide is transitioning
- other code cleanup/fixes
Bug fixes, and enhancements
Fix issue #217
New Props
swipeThreshold
: Integer, default30
- A percentage of how far the offset of the current slide is swiped to trigger a slide event.
e.g. If the current slide is swiped less than 30% to the left or right, it will not trigger a slide event.
- A percentage of how far the offset of the current slide is swiped to trigger a slide event.
stopPropagation
: Boolean, defaultfalse
- Automatically calls stopPropagation on all 'swipe' events.
preventDefaultTouchmoveEvent
: Boolean, defaultfalse
- An option to prevent the browser's touchmove event (stops the gallery from scrolling up or down when swiping)
Enhancements
- Support of additional touch events on the slides
onTouchEnd
: Function,callback(event)
onTouchStart
: Function,callback(event)
- Adds onThumbnailClick prop callback
- Fixed warning for setState when resizing the gallery after unmounting
Performance improvement and bug fixes
- Fix overlapping transitions when using
infinite
(this was happening on certain browsers going from the first to the last slide and vise versa) - Add prop for
onTouchMove
#197 - Fixes navigation padding on mobile #195
- Add ability to add title attribute to gallery using
originalTitle
andthumbnailTitle
- Add esc key support for non native browser fullscreen
- Minor bug fixes and performance improvement on sliding
Bump react to 15.5.4
Fix proptype warnings
minor bug fies and improvements
v0.7.16 Release 0.7.16