reaper.BR_GetMouseCursorContext() can return 'item_strech_marker" only if take playrate is 1, else it returns ITEM (except other special circumstances).
Consequences is that reaper.BR_GetMouseCursorContext_StretchMarker() often return -1 or nothing on strech marker on take with rate ~= 1.
You can test with https://github.com/X-Raym/REAPER-ReaScripts/blob/master/Items%20Properties/X-Raym_Reset%20stretch%20marker%20under%20mouse%20position.lua if you want !
This should have been fixed for the last official build. Are you testing with latest SWS?
SWS 2.8.0 and REAPER 5.02 pre 1
Ok I succeed to reproduce it
Can you share example project and explain exact repro steps?
If you want to do it by yourself
But does "sometimes it works, sometimes doesn't" happen consistently or what?
That's why I'm asking for example project - where it should be possible to consistently reproduce this :)
I updated a project in previous post. Two tracks : one with take at x2.7 and other at x1
I just close and reopen and REAPER and problem was still their for take at x2.7
Ok, thanks - I'll check it out
Fixed issue #765 - various actions and ReaScript API weren't working …
…properly with stretch markers at mouse cursor when take playrate is modified