flot/flot — pull request #45 by risicle (2012-06-06 10:03:10+00:00)
Title: navigate plugin: don't just give up if new zoom is outside the zoomRange...

Hi,

A bit of a stranger patch here. Do with as you like. Instead of giving up if the new zoom is outside the zoomRange, choose a new viewport whose range is the min/max range. This is useful if the plot's zoom is also being manipulated by other means and so would end up in a state "between zoom steps". This would mean you would get to a point where you could never zoom "fully out" as that final step would take you beyond the zoom range.

Note the issues around choosing the centerpoint of the new viewport documented in the source.