Skip to content

Commit dfec30e

Browse files
authored
Update amagalma_Smooth scroll view Settings.lua
1 parent eb86d73 commit dfec30e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

View/amagalma_Smooth scroll view Settings.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-- @description Smooth scroll arrange view settings
22
-- @author amagalma
3-
-- @version 1.00
3+
-- @version 1.01
4+
-- @changelog Do not accept a maximum duration that is less or equal to 31ms (one defer cycle)
45
-- @donation https://www.paypal.me/amagalma
56

67
local ret = reaper.GetExtState("amagalma_Smooth Scroll", "scroll")
@@ -14,7 +15,7 @@ if ok then
1415
local new_scroll, new_max_duration = retvals:match("(.+),(.+)")
1516
local new_scroll_num = tonumber(new_scroll)
1617
local new_max_duration_num = tonumber(new_max_duration)
17-
if new_scroll_num and new_scroll_num > 0 and new_max_duration_num and new_max_duration_num > 0 then
18+
if new_scroll_num and new_scroll_num > 0 and new_max_duration_num and new_max_duration_num > 31 then
1819
reaper.SetExtState( "amagalma_Smooth Scroll", "scroll", new_scroll, true )
1920
reaper.SetExtState( "amagalma_Smooth Scroll", "max_duration", new_max_duration, true )
2021
else

0 commit comments

Comments
 (0)