[Cuis-dev] Small change in PluggableScrollPane

Alan Ferrise tec.alan.ferrise at gmail.com
Fri May 17 18:39:33 PDT 2024


Hi, I noted a small bug when I was doing some exercises in Cuis so I tried
to fix it:
[image: image.png]
When the mouse is over a button and you scroll, it ends up scrolling the
text that sits behind the active window, which in this case is the Terse
Guide.

I started looking how to fix this and I found that PluggableScrollPane is
the class responsible for modeling scrolling windows. I noted that it
doesn't listen to mouseOver events, so I did it and added an instance
collaborator named mouseIsOver, whose value is checked when the mouseScroll
event is called. This seems to have fixed the problem.
I then looked its sibling class, PluggableButtonMorph, that listens to the
mouseOver events in the same manner that I end up implementing it in
PluggableScrollPane, which make me wonder if I had to put mouseIsOver in
their superclass, however, I ended up discarding the idea.
I include the ChangeSet with the changes.

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240517/2aa5f514/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 210152 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240517/2aa5f514/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6351-CuisCore-Alan-2024May17-21h45m-AF.001.cs.st
Type: application/octet-stream
Size: 4148 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240517/2aa5f514/attachment-0001.obj>


More information about the Cuis-dev mailing list