Hi Levi, wouldn't it be better to have this doen through something like CTRL^Scroll instead of scroll? While you edit it is handy (almost mandatory) to use the scroll wheel to pan and zoom around keeping the editing going. So if it was me, I would prefer to have that linked to a key.
Ciao, Andrea On Thu, Sep 15, 2011 at 8:29 AM, Levi Putna <[email protected]> wrote: > Hey team and Jesse in particular, > I want to use the mouse wheel to modify the amount of buffer applied to the > SmartBuffer Tool hoverer the ScrollZoom Background Tool is active and messes > with my plans. Is there a way to disable background tools programatically, > use the mouse wheel for my buffer tool then then enable the ScrollZoom > again? > If not, is it possible to add a flag to the ScrollZoom Tool so that it can > be disable then enable, this will allow other tools to temporarily use the > mouse wheel without having the map zoom in the process? > Something like: > > private boolean disabled = false; > > public void disabled(boolean disabled){ > this.disabled = disabled; > } > > public void mouseWheelMoved(MapMouseWheelEvent e) { > > if(disabled) > return; > > if( e.modifiersDown() ) > return; > > NavigationUpdateThread.getUpdater().zoomWithFixedPoint(e.clickCount * 3, > getContext(), NavigationUpdateThread.DEFAULT_DELAY,e.getPoint()); > > } > } > > Thanks, > Mr Levi Putna > [email protected] > www.ozblog.com.au > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > > _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
