mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Fixing label track update on mouse movement
This commit is contained in:
committed by
Paul Licameli
parent
63ce4db946
commit
cea4a91108
@@ -325,15 +325,17 @@ void CellularPanel::HandleMotion
|
|||||||
|
|
||||||
state.mLastCell = newCell;
|
state.mLastCell = newCell;
|
||||||
|
|
||||||
/*
|
|
||||||
// These lines caused P2 Bug 2617, repeated refreshing using all CPU.
|
// These lines caused P2 Bug 2617, repeated refreshing using all CPU.
|
||||||
// Disabling them might be causing something to not refresh,
|
// Disabling them might be causing something to not refresh,
|
||||||
// but so far I have not found a downside to disabling them. JKC
|
// but so far I have not found a downside to disabling them. JKC
|
||||||
|
|
||||||
|
// VS: https://github.com/audacity/audacity/issues/1363
|
||||||
|
// Extensive refresh request fixed by using std::move on
|
||||||
|
// new envelope handle instance
|
||||||
if (!oldCell && oldHandle != handle)
|
if (!oldCell && oldHandle != handle)
|
||||||
// Did not move cell to cell, but did change the target
|
// Did not move cell to cell, but did change the target
|
||||||
refreshCode = updateFlags;
|
refreshCode = updateFlags;
|
||||||
*/
|
|
||||||
|
|
||||||
if (handle && handle != oldHandle)
|
if (handle && handle != oldHandle)
|
||||||
handle->Enter(true, GetProject());
|
handle->Enter(true, GetProject());
|
||||||
|
|||||||
Reference in New Issue
Block a user