in MidiView::view_changed(), don't update existing events unless zoom has changed

This commit is contained in:
Paul Davis 2025-11-13 17:08:04 -07:00
parent b14859fc46
commit e2cea58876

View file

@ -1323,9 +1323,12 @@ MidiView::view_changed()
EC_LOCAL_TEMPO_SCOPE_ARG (_editing_context);
for (auto & [ note, gui ] : _events) {
if (note->end_time() != std::numeric_limits<Temporal::Beats>::max()) {
update_note (gui);
const samplecnt_t zoom = _editing_context.get_current_zoom();
if (zoom != _last_display_zoom) {
for (auto & [ note, gui ] : _events) {
if (note->end_time() != std::numeric_limits<Temporal::Beats>::max()) {
update_note (gui);
}
}
}
return;