Skip to content Skip to sidebar Skip to footer

Jquery-mousewheel Fix Maximum Value

I am using brandonaaron jquery-mousewheel plugin in https://github.com/brandonaaron/jquery-mousewheel with a zoom function on Pan Zoom. The problem is i cant fix a maximum value t

Solution 1:

the plugin doesn't have a concept of a zoomlevel - so this approach won't work. Instead, it continually zooms in/out and tracks state by the current size of the image - which it increases/decreases as you zoom.

You can limit how far 'out' you can zoom with the min_width and min_height options - currently max is not implemented, but the same logic could be used to add max_width and max_height too.

Post a Comment for "Jquery-mousewheel Fix Maximum Value"