cabana: allow zooming to smaller ranges (#27748)

* cabana: allow zooming to smaller ranges

* remove comment
pull/214/head
Willem Melching 2 years ago committed by GitHub
parent f3664b658b
commit cf299002f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tools/cabana/chartswidget.cc

@ -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();

Loading…
Cancel
Save