From 92caaaf059cefa9b2091d47f3cea872b02537936 Mon Sep 17 00:00:00 2001 From: AZpercussion <70285853+AZpercussion@users.noreply.github.com> Date: Sun, 31 Mar 2024 21:29:20 +0300 Subject: [PATCH] Release Link time selection or loop points to arrange view v1.2 (#1343) - Fixed edit cursor lost outside of time selection on scrolling --- ...ime selection or loop points to arrange view.lua | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Time Selection/az_Link time selection or loop points to arrange view.lua b/Time Selection/az_Link time selection or loop points to arrange view.lua index 2b60bd8ac..dc82881b0 100644 --- a/Time Selection/az_Link time selection or loop points to arrange view.lua +++ b/Time Selection/az_Link time selection or loop points to arrange view.lua @@ -1,7 +1,7 @@ -- @description Link time selection or loop points to arrange view -- @author AZ --- @version 1.1 --- @changelog - Fixed dependency on option "Loop points linked to time selection" +-- @version 1.2 +-- @changelog - Fixed edit cursor lost outside of time selection on scrolling -- @link Forum thread https://forum.cockos.com/showthread.php?t=288069 -- @donation Donate via PayPal https://www.paypal.me/AZsound -- @about @@ -59,15 +59,9 @@ function main() local _, _ = reaper.GetSet_LoopTimeRange2( 0, true, true, startTSgrid, endTSgrid, false ) local playState = reaper.GetPlayStateEx(0) - local curPos + local curPos = reaper.GetCursorPosition() if oldTSstart ~= startTSgrid then - - if playState == 1 or playState == 5 then - curPos = reaper.GetPlayPositionEx(0) - else - curPos = reaper.GetCursorPosition() - end if curPos < startTSgrid or curPos > endTSgrid then local contScroll = reaper.GetToggleCommandState(41817)* -1 +1 @@ -111,4 +105,3 @@ else reaper.defer(function()end) end -