Skip to content

Commit e89b5db

Browse files
committed
v.6.0 - Add passive event handlers, svg images, no ie10, new option wheelZoomSpeed
1 parent fb0c2a4 commit e89b5db

35 files changed

+243
-215
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Features:
1212
- Image rotation support with zoom and pan
1313
- Link button to open links if the image has a wrapping link (in any parent element)
1414
- Support for mobile devices. You can pan by dragging the zoomed image
15-
- Support for all modern desktop and mobile browsers and support for Internet Explorer from version 10
16-
- Just 2KB minified and gzipped
15+
- Support for all modern desktop and mobile browsers
16+
- v6.0 removed support for Internet Explorer ⚠️
1717

1818
## Getting Started
1919

@@ -60,6 +60,7 @@ The available properties for this object in this version are:
6060

6161
- **`showRotationControls`**: parameter to indicate if the rotation of images should be allowed or not.
6262
- **`minLoadingTime`**: indicates the minimum amount of time in milliseconds that the loading animation should be shown (by default it shows the images immediately as soon as they are loaded)
63+
- **`wheelZoomSpeed`**: the speed of the zoom when using the mouse wheel. It can be a number greater than 0. The default value is 100. It is the number of milliseconds between wheel events to speed up (lower values) or down (higher values) the zoom speed. It is useful to avoid zooming too fast or too slow with the mouse wheel in desktop or the touch event in mobile devices. If you set it to 0, the zoom speed will be too fast and it will be difficult to control the zoom level. If you set much higher than 200 or 300, it will be too slow to zoom in or out. It is recommended to set it between 50 and 200.
6364

6465
By default it shows the rotation controls:
6566

dist/css/img/close.png

-21.4 KB
Binary file not shown.

dist/css/img/close.svg

Lines changed: 1 addition & 0 deletions
Loading

dist/css/img/link.png

-14.2 KB
Binary file not shown.

dist/css/img/link.svg

Lines changed: 1 addition & 0 deletions
Loading

dist/css/img/rotateaw.pdn

-52.3 KB
Binary file not shown.

dist/css/img/rotateaw.png

-18.3 KB
Binary file not shown.

dist/css/img/rotateaw.svg

Lines changed: 1 addition & 0 deletions
Loading

dist/css/img/rotatecw.png

-18 KB
Binary file not shown.

dist/css/img/rotatecw.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)