faheem801 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Restrict Navigation (Pan, Zoom) to certain axis #443

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if the navigate plugin, would allow for restricting panning, 
zooming on certain axis. I've achieved this by checking for value of "noPan", 
or "noZoom" then just returning, dropping out of the function and this has the 
effect of only allowing those axis without this option to do the pan/zooming.

flot version 0.6

here are the proposed changes:

220,221d219
<                 if( opts.zoomRange == "noZoom"){return;}
<                 
262,264c260
<                 
<                 if(pr == "noPan"){ return; }
<                 

---
> 

Original issue reported on code.google.com by dragon.peter on 15 Dec 2010 at 7:46

GoogleCodeExporter commented 9 years ago
Hi! Thanks for the report and patch! It's fixed in the development release with 
a commit I made half an hour ago (you need to set it to false).

Original comment by olau%iol...@gtempaccount.com on 10 Mar 2011 at 4:16