reaper-oss / sws

The SWS extension is a collection of features that seamlessly integrate into REAPER, the Digital Audio Workstation (DAW) software by Cockos, Inc
https://www.sws-extension.org/
MIT License
455 stars 85 forks source link

Reaper 7 - reaper.BR_TrackAtMouseCursor() doesn't take care of spacer #1805

Closed MathieuCGit closed 11 months ago

MathieuCGit commented 11 months ago

Hello folks,

As reported here : https://github.com/me2beats/reapack/issues/2

I suspect the function reaper.BR_TrackAtMouseCursor() to not consider track spacer when returning the track under mouse.

To reproduce using me2beat script :

If I put the mouse on the TCP track, in this case it works. So it seems to be the way the function returns the track under arrange view/item.

If I remove every spacer, the function and the script perfectly work.

here is a gif : https://imgur.com/IrQubkH

Buy-One commented 11 months ago

There's an unreleased build with the fix https://github.com/reaper-oss/sws/pull/1787

cfillion commented 11 months ago

Closing as duplicate of #1761.

cfillion commented 11 months ago

Also, REAPER now has its own GetTrackFromPoint function which is a lot faster than the SWS one and does not have this compatibility issue.