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

Fixing label track update on mouse movement

This commit is contained in:
Vitaly Sverchinsky 2021-08-06 19:47:54 +03:00 committed by Paul Licameli
parent 63ce4db946
commit cea4a91108

View File

@ -325,15 +325,17 @@ void CellularPanel::HandleMotion
state.mLastCell = newCell;
/*
// These lines caused P2 Bug 2617, repeated refreshing using all CPU.
// Disabling them might be causing something to not refresh,
// 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)
// Did not move cell to cell, but did change the target
refreshCode = updateFlags;
*/
// Did not move cell to cell, but did change the target
refreshCode = updateFlags;
if (handle && handle != oldHandle)
handle->Enter(true, GetProject());