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

Panel to zoomIN and ZoomOut #7

Closed equero closed 9 years ago

equero commented 10 years ago

Bro, :D i love you, but i need a new feature in your plugin. Im working on a website, and i need to create my customized map. I need to create a panel with 2 buttons ( + AND - ) to zoomin and zoomout.

There is an example

http://jsfiddle.net/aamir/TSMpq/3/

aamirafridi commented 10 years ago

continuing previous comment (the fiddle link provided is what I tried). The problem is that once you zoom in using buttons and then try wheel, it starts zooming from 0, 0 coordinates.

Also once you click the zoom buttons, the drag stops working.

equero commented 10 years ago

Another problem: Yoy always zoom in the middle of the image, not the part im watching in a div .

aamirafridi commented 10 years ago

When you click the zoom in, how would the plugin know which part of the image you are looking? :D