1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-24 16:01:16 +02:00

Cursor was meant to change to hand only after click on TCP

This commit is contained in:
Paul Licameli 2017-07-16 22:53:59 -04:00
parent cc0f76d076
commit fa96dcffb9
2 changed files with 3 additions and 2 deletions

View File

@ -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 };

View File

@ -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?