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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Toolset/libraries/revbackscriptlibrary.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -3284,7 +3284,12 @@ constant kHandleSize = 5
on ideMouseMove pX, pY, pTarget
if the tool is not "pointer tool" then exit ideMouseMove

if pTarget is among the lines of the selectedObjects then
local tOldCursor
if the lockcursor then
put the cursor into tOldCursor
end if

if pTarget is among the lines of the selectedObjects and not (the lockLoc of pTarget) then
local tRect
put the rect of pTarget into tRect
local tLeft = false
Expand Down Expand Up @@ -3336,7 +3341,11 @@ on ideMouseMove pX, pY, pTarget
unlock cursor
end if
else
unlock cursor
if tOldCursor is not empty and tOldCursor is not among the items of "83,84,31,30" then
set the cursor to tOldCursor
else
unlock cursor
end if
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 @@
# Remove unnecessary 'unlock cursor' in ideMouseMove