JSPM

mouse_hover_pinch_zoom

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25800F
  • License MIT

a Javascript library providing touch gestures for zooming and dragging on image elements on mobile And mouse gestures for deep zooming on devices that use mouse.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mouse_hover_pinch_zoom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Hover_pinch_zoom

    HoverPinchZoom is a Javascript library providing touch gestures for zooming and dragging on image elements on mobile And mouse gestures for deep zooming on devices that use mouse.

    Installation

    Usage

    Requirements

    Initialisation

    html

    <div id="parent_div_of_image" style="width:30vw; height: 70vh;">
        <img class="mob" src="mannq.png"/>
    </div>
    var el = document.querySelector('#parent_div_of_image');
    init_zoom(el);
    

    Troubleshooting

    • If you have issues with invisible images, make sure that the image isn't absolutely positioned. In some cases that will cause trouble.
    • Make sure you set dimensions for the parent div of the image

    License

    Licensed under the MIT License.

    Github Page with demo

    https://emperorx3m.github.io/Hover_pinch_zoom/