I have a custom morph that overrides handlesMouseStillDown: to return true.
Simply by doing only that, it causes WorldState>>#drawWorld:submorphs:invalidAreasOn: to send #fullDrawMorph: with my Morph as the argument on every MouseMove event over my morph, regardless whether any button is down or not.
I only noticed it because the rapid redrawing causes a slight flickering in my Morph.
Setting handlesMouseStillDown: back to false, my morph's redrawing code is not executed at all when I move through it.
I have no idea why simply handling this event causes the rapid redrawing.
Thanks for any suggestions..
Finally figured it out. I had overridden #handlesMouseMove: to answer true and, for some reason, Morphic calls handleMouseStillDown: from handleMouseMove: even when no button is down. Strange!
On Fri, Apr 18, 2014 at 10:14 AM, Chris Muller ma.chris.m@gmail.com wrote:
I have a custom morph that overrides handlesMouseStillDown: to return true.
Simply by doing only that, it causes WorldState>>#drawWorld:submorphs:invalidAreasOn: to send #fullDrawMorph: with my Morph as the argument on every MouseMove event over my morph, regardless whether any button is down or not.
I only noticed it because the rapid redrawing causes a slight flickering in my Morph.
Setting handlesMouseStillDown: back to false, my morph's redrawing code is not executed at all when I move through it.
I have no idea why simply handling this event causes the rapid redrawing.
Thanks for any suggestions..
On 18-04-2014, at 9:12 AM, Chris Muller asqueaker@gmail.com wrote:
Finally figured it out. I had overridden #handlesMouseMove: to answer true and, for some reason, Morphic calls handleMouseStillDown: from handleMouseMove: even when no button is down. Strange!
There’s a lot of strange stuff in there with almost no sort of documentation to provide any context. I’ve tried to doc the layout policy and drag/drop related code on the swiki but much, much more is needed.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Never write software that patronizes the user.
squeak-dev@lists.squeakfoundation.org