diff --git a/Toolset/libraries/revbackscriptlibrary.livecodescript b/Toolset/libraries/revbackscriptlibrary.livecodescript index ee072a96e3..99fb20a364 100644 --- a/Toolset/libraries/revbackscriptlibrary.livecodescript +++ b/Toolset/libraries/revbackscriptlibrary.livecodescript @@ -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 @@ -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 diff --git a/notes/bugfix-22211.md b/notes/bugfix-22211.md new file mode 100644 index 0000000000..d29fdd84b6 --- /dev/null +++ b/notes/bugfix-22211.md @@ -0,0 +1 @@ +# Remove unnecessary 'unlock cursor' in ideMouseMove