mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
Cursor was meant to change to hand only after click on TCP
This commit is contained in:
@@ -104,6 +104,7 @@ UIHandle::Result TrackSelectHandle::Click
|
||||
pProject->HandleListSelection
|
||||
(pTrack.get(), event.ShiftDown(), event.ControlDown(), !unsafe);
|
||||
|
||||
mClicked = true;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -153,8 +154,7 @@ HitTestPreview TrackSelectHandle::Preview
|
||||
(const TrackPanelMouseState &, const AudacityProject *project)
|
||||
{
|
||||
const auto trackCount = project->GetTrackPanel()->GetTrackCount();
|
||||
if (mpTrack) {
|
||||
// Has been clicked
|
||||
if (mClicked) {
|
||||
static auto disabledCursor =
|
||||
::MakeCursor(wxCURSOR_NO_ENTRY, DisabledCursorXpm, 16, 16);
|
||||
static wxCursor rearrangeCursor{ wxCURSOR_HAND };
|
||||
|
||||
@@ -52,6 +52,7 @@ public:
|
||||
|
||||
private:
|
||||
std::shared_ptr<Track> mpTrack;
|
||||
bool mClicked{};
|
||||
|
||||
// JH: if the user is dragging a track, at what y
|
||||
// coordinate should the dragging track move up or down?
|
||||
|
||||
Reference in New Issue
Block a user