[BUG][FIX] TransformMorph>>containsPoint:

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Tue May 15 22:28:16 UTC 2001


[BUG] If you have a morph with holes, and you rotate it, the transparent
areas won't let mouse clicks through anymore. Just paint a zig-zag line,
rotate it, and you can grab it even by clicking in between the zig-zags.

The cause is that in TransformMorph>>containsPoint:, the morph inside the
transform is not sent #containsPoint:, but only its fullBounds are tested.
Is there a reason for this? It surely breaks the illusion of the
"thingness" of self-painted objects ...

[FIX] Remove the #fullBounds send in TransformMorph>>containsPoint:.

-- Bert





More information about the Squeak-dev mailing list