encodle / gflot

Automatically exported from code.google.com/p/gflot
0 stars 0 forks source link

Change from Pan mode to Selection dynamically #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I have a plot with setZoomOptions and setPanOptions set to Interactive(true) 
and it works fine. 
2. If I push a button, I would like to clear this options and set 
setSelectionOptions instead.
3. I've tried plot.getPlotOptions().getPanOptions().setInteractive( false ) and 
plot.getPlotOptions().getPanOptions().clearInteractive() and plot.redraw()

What is the expected output? What do you see instead?

The desired behaviour would be to be able to use the selectionOptions after the 
PanOptions being disable, but it doesn't work properly, the plot remins working 
as the beginning, this is with PanOptions and ZoomOptions.

What version of the product are you using? On what operating system?

2.4.3 on Mac, 10.6

Please provide any additional information below.

Original issue reported on code.google.com by jordiv...@gmail.com on 9 Aug 2012 at 1:53

GoogleCodeExporter commented 8 years ago
The navigate plugin bind its events on plot initialization and don't look if 
the pan/zoom interactive option has changed.

A quick solution is to modify the plugin and test for the pan/zoom interactive 
option in methods onZoomClick, onMouseWheel and onDragStart. 

Original comment by nmr.morel on 19 Jan 2013 at 5:28