X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.cpp;h=c324410a75cb873aaed571cea402f23981ad36ec;hp=f79a5785d558f56b54a60b37605614d08f9b16c9;hb=650e2e5fd465119615b9b969d15cc9fb11f18aa4;hpb=76fea660eea8a2e1963b4703906392a0999669d0 diff --git a/pv/view/cursorheader.cpp b/pv/view/cursorheader.cpp index f79a5785..c324410a 100644 --- a/pv/view/cursorheader.cpp +++ b/pv/view/cursorheader.cpp @@ -100,7 +100,8 @@ void CursorHeader::mouseMoveEvent(QMouseEvent *e) for (auto &i : items) if (i->dragging()) i->set_time(view_.offset() + - (i->drag_point().x() + delta) * view_.scale()); + (i->drag_point().x() + delta - 0.5) * + view_.scale()); } void CursorHeader::mousePressEvent(QMouseEvent *e)