Re: [chlor-develop] GrabHandTool and autoscrolling
Status: Pre-Alpha
Brought to you by:
lenny222
|
From: <chl...@li...> - 2006-04-06 21:23:54
|
Hi, >> just updated the GrabHandTool to make it behave a bit better. >> However, when moving outside the drawing area, autoscroll routine >> of ChlorMainView kicks in and results into a "bumpy" appearance. > > Noticed that, thanks. It behaves much better now. > >> Anyhow, I'm guessing that it would help if we could turn off >> autoscrolling when the GrabHandTool is active. However, I neither >> want to make ChlorMainView aware of the active tool, nor make it >> stateful - any better proposals? > > If autoscroll is really the problem, why not unset/set it in > CGrabhandTool's activate:/deactivate: methods (see CTool)? Or what > do you mean with "stateful"? Autoscrolling happens via the mouseDragged method of ChlorMainView by an unconditional call of [self autoscroll: theEvent]. We can make that conditional, but then ChlorMainView would be stateful (i.e. autoscrolling could be switched on and off). BTW, I just noticed something that the GrabHandTool behaves also interesting when the window is being moved around ... Regrads, Florian |