[Cuis-dev] Re : Fix resize pointer bug in LayoutAdjustingMorph
H. Fernandes
hfern at free.fr
Fri Apr 3 08:49:52 PDT 2026
Thanks. This one was annoying.
Dr. Geo -- http://gnu.org/s/dr-geo
----- Facundo Javier Gelatti via Cuis-dev <cuis-dev at lists.cuis.st> a écrit :
> I attach the changes to fix a bug where the pointer image gets stuck as the
> resize cursor.
>
> Here are the steps to reproduce the bug:
>
> 1. Click on any morph and hold mouse button 1 (right-click and hold).
> 2. Drag across a pane splitter or window edge.
> 3. Continue dragging away, and the cursor stays stuck as resize.
>
>
> After the attached changes get filed-in, if you're already dragging
> (holding button 1) and go across a layout adjusting morph, then the pointer
> does not change to the resize cursor (and because the user is already
> dragging, they won't be able to resize anyway); see #mouseEnter:.
> At the same time, if you are in the middle of performing a resize, we do
> want the pointer to keep being the resize cursor. So, if `hand` is not nil,
> we don't restore the default cursor; see #mouseLeave:.
>
> Cheers!
> Facu
More information about the Cuis-dev
mailing list