[Cuis-dev] Fix resize pointer bug in LayoutAdjustingMorph

Facundo Javier Gelatti javiergelatti at gmail.com
Fri Apr 3 08:28:26 PDT 2026


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260403/98b094a9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LayoutAdjustingMorph-FixResizeCursorBug.cs.st
Type: application/vnd.sailingtracker.track
Size: 501 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260403/98b094a9/attachment.st>


More information about the Cuis-dev mailing list