cabana: allow zooming to smaller ranges (#27748)

* cabana: allow zooming to smaller ranges

* remove comment
This commit is contained in:
Willem Melching
2023-03-30 21:36:34 +02:00
committed by GitHub
parent f3664b658b
commit cf299002f7
+1 -2
View File
@@ -713,8 +713,7 @@ void ChartView::mouseReleaseEvent(QMouseEvent *event) {
if (rubber->width() <= 0) {
// no rubber dragged, seek to mouse position
can->seekTo(min);
} else if ((max_rounded - min_rounded) >= 0.5) {
// zoom in if selected range is greater than 0.5s
} else if (rubber->width() > 10) {
emit zoomIn(min_rounded, max_rounded);
} else {
update();