mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-23 00:27:07 +01:00
cursors: Only emit cursorsMoved after dragging (not on view updates)
This fixes #59 since selectedSamples will now only change when cursors are dragged.
This commit is contained in:
@@ -114,6 +114,7 @@ void PlotView::enableCursors(bool enabled)
|
||||
if (enabled) {
|
||||
int margin = viewport()->rect().width() / 3;
|
||||
cursors.setSelection({viewport()->rect().left() + margin, viewport()->rect().right() - margin});
|
||||
cursorsMoved();
|
||||
}
|
||||
viewport()->update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user