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 !
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 !