Skip to content

Commit 9b653d3

Browse files
committed
Improved mobile interaction and scroll detection
1 parent 115a58f commit 9b653d3

File tree

9 files changed

+32365
-32351
lines changed

9 files changed

+32365
-32351
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ It will have the class `loading` while the image is been preloaded and `loaded`
3535

3636
Additionally it will have the class `fullview` while the user has not initiated the zoom and `zoomed` once the user has taped/clicked in.
3737

38+
## New to v1.5.5
39+
40+
On touch enabled devices users can interact with one finger to zoom in and move the zoom location by dragging the finder on the image, this will disable the scrolling.
41+
42+
__NEW:__ Touching with more than 1 finger on the image will not activate the zoom and page will scroll as normal, this was decided this way as it is easier to use one finger to zoom and drag on the image.
43+
3844
### New to v1.5.0
3945

4046
Migrated `ImageZoom` to typescript!

lib/react-image-zooom.js

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-image-zooom.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)