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:
parent
cc0f76d076
commit
fa96dcffb9
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user