Repository navigation
Migrated react-image-zooom to Typecript
Migrated ImageZoom to typescript!
This version also brings a full component refactor, migrating all the logic to React Hooks for better performance, readability and testability. The styling has also been updated to fully use styled-components features for a more robust and scalable solution.
Bug fixes:
There was an issue on mobile where the zoom was been fired twice, this as now been fixed
On mobile it was possible to drag horizontally on the image to move the zoom position, but doing it vertically was very difficult as the page would scroll. This changes the touchmove event on mobile to have its passive option set to false
Updated transitions to avoid the white background flash when zooming out of an image
Updated cursor to zoom-out when image is zoomed in