X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.cpp;h=c324410a75cb873aaed571cea402f23981ad36ec;hb=d4e39570ee6021766c375654801dddba45b9198a;hp=f79a5785d558f56b54a60b37605614d08f9b16c9;hpb=f4433aa958fb9c85ce82ef5545d722625cb64f9e;p=pulseview.git 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)