jackmoore / wheelzoom

A small script for zooming IMG elements with the mousewheel/trackpad.
http://www.jacklmoore.com/wheelzoom
MIT License
342 stars 95 forks source link

Added size and position settings for initialization of image #5

Closed moeamaya closed 1 year ago

moeamaya commented 10 years ago

Not sure if this is within the scope of what you want the plugin to do. But often when I use this, especially with dense SVGs, I want to focus on a certain part of the image, but still allow users to zoom out to understand the context of that cropped detail. Also this allows me to load a single SVG image and crop it to my heart's content all over the page.

Lastly I like having the 'move' cursor enabled to give a hint as to the potential interactions available to the image without explicitly stating it. Let me know what you think or any code conventions you prefer since this is my first pull request.