[Cuis-dev] Fix resize pointer bug in LayoutAdjustingMorph

Juan Vuletich juan at jvuletich.org
Tue Apr 7 08:18:12 PDT 2026


Hi Folks,

It sure was! Thanks Facu. It is now at GitHub.

Cheers!

On 2026-04-03 12:49 PM, H. Fernandes via Cuis-dev wrote:
> 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

-- 
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich



More information about the Cuis-dev mailing list