Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[Bug 22211] Remove unnecessary 'unlock cursor' in ideMouseMove #2132

Open
wants to merge 2 commits into
base: develop-9.6
Choose a base branch
from

Conversation

BerndN
Copy link
Contributor

@BerndN BerndN commented May 6, 2020

This patch removes a seemingly unnecessary unlock cursor in the IDE's
mouseMove event handler (ideMouseMove).

The IDE intercepts mouseMove so that it can update the resize cursor
used when the mouse is over the relevant selection handlers. It does this
by locking the cursor in this case and then changing the cursor
appropriately; unlocking the cursor when there is a selected object and
the mouse is not over a selection handle.

Previously it would also unlock the cursor if pointer tool was in effect and
there was no selected object which (because the handler is executed in
time after any user handlers) would undo any user use of lock cursor.

This fixes bug 22211 and bug 18428 and avoids the problems of a fix for these in
#2092

BerndN added 2 commits May 6, 2020 13:25
This patch removes a seemingly unnecessary `unlock cursor` in the IDE's
mouseMove event handler (`ideMouseMove`).

The IDE intercepts mouseMove so that it can update the resize cursor
used when the mouse is over the relevant selection handlers. It does this
by locking the cursor in this case and then changing the cursor
appropriately; unlocking the cursor when there is a selected object and
the mouse is not over a selection handle.

Previously it would also unlock the cursor if pointer tool was in effect and
there was no selected object which (because the handler is executed in
time after any user handlers) would undo any user use of `lock cursor`.

This fixes bug 22211 and bug 18428 and avoids the problems of a fix for these in 
livecode#2092
@livecodepanos livecodepanos added this to the 9.6.1-rc-1 milestone May 12, 2020
@livecodepanos livecodepanos changed the base branch from develop to develop-9.6 May 12, 2020 12:12
@livecodepanos livecodepanos removed this from the 9.6.1-rc-1 milestone Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants