Skip to content

Commit

Permalink
v.6.0 - Add passive event handlers, svg images, no ie10, new option w…
Browse files Browse the repository at this point in the history
…heelZoomSpeed
  • Loading branch information
jmalarcon committed Oct 4, 2024
1 parent fb0c2a4 commit e89b5db
Show file tree
Hide file tree
Showing 35 changed files with 243 additions and 215 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Features:
- Image rotation support with zoom and pan
- Link button to open links if the image has a wrapping link (in any parent element)
- Support for mobile devices. You can pan by dragging the zoomed image
- Support for all modern desktop and mobile browsers and support for Internet Explorer from version 10
- Just 2KB minified and gzipped
- Support for all modern desktop and mobile browsers
- v6.0 removed support for Internet Explorer ⚠️

## Getting Started

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

- **`showRotationControls`**: parameter to indicate if the rotation of images should be allowed or not.
- **`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)
- **`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.

By default it shows the rotation controls:

Expand Down
Binary file removed dist/css/img/close.png
Binary file not shown.
1 change: 1 addition & 0 deletions dist/css/img/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/css/img/link.png
Binary file not shown.
1 change: 1 addition & 0 deletions dist/css/img/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/css/img/rotateaw.pdn
Binary file not shown.
Binary file removed dist/css/img/rotateaw.png
Binary file not shown.
1 change: 1 addition & 0 deletions dist/css/img/rotateaw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/css/img/rotatecw.png
Binary file not shown.
1 change: 1 addition & 0 deletions dist/css/img/rotatecw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/css/img/zoomIn.png
Binary file not shown.
1 change: 1 addition & 0 deletions dist/css/img/zoomIn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/css/img/zoomOut.png
Binary file not shown.
1 change: 1 addition & 0 deletions dist/css/img/zoomOut.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/css/jquery.pan.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e89b5db

Please sign in to comment.