My first DEV Community release announcement! Hopefully I tagged it correctly.
React Inner Image Zoom version 3.0.0 went out earlier this week with a handful of bug fixes, test and build improvements, and one major change.
What's the big thing to look out for? By popular demand, the
imgAttributes prop was added to pass down (almost) any valid React
img attributes in a single object instead of as individual props. That means
title are gone but in exchange you get all the data attributes and event handlers you could want. I haven't submitted updated type definitions to DefinitelyTyped yet but I'll try to get that done in the next few days.
This release also included a handy new Changelog so I would be remiss not include the official record here:
imgAttributesto set the original image's attributes.
- Show close button when
moveTypeis set to "drag" on all breakpoints.
- Switched from
onTransitionEndto check that zoomed image has finished fading out.
- This handy CHANGELOG.
stopPropagationon touchmove to prevent events below fullscreen modal.
If you run into any bugs, please let me know in the GitHub issues.