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

Commit

Permalink
[[ Bug 22211 ]] Remove unnecessary 'unlock cursor' in ideMouseMove
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
livecodepanos committed Apr 27, 2020
1 parent 7979fcd commit 2f9bb4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Toolset/libraries/revbackscriptlibrary.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -3335,8 +3335,6 @@ on ideMouseMove pX, pY, pTarget
else
unlock cursor
end if
else
unlock cursor
end if
end ideMouseMove

Expand Down
1 change: 1 addition & 0 deletions notes/bugfix-22211.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ensure lock cursor does not break when the pointer tool is selected

0 comments on commit 2f9bb4a

Please sign in to comment.