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

Commit 2f9bb4a

Browse files
committed
[[ Bug 22211 ]] Remove unnecessary 'unlock cursor' in ideMouseMove
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`.
1 parent 7979fcd commit 2f9bb4a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Toolset/libraries/revbackscriptlibrary.livecodescript

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3335,8 +3335,6 @@ on ideMouseMove pX, pY, pTarget
33353335
else
33363336
unlock cursor
33373337
end if
3338-
else
3339-
unlock cursor
33403338
end if
33413339
end ideMouseMove
33423340

notes/bugfix-22211.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure lock cursor does not break when the pointer tool is selected

0 commit comments

Comments
 (0)