From a3c65cc388c60abc32bfba1e5468a36b75179033 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Fri, 19 Apr 2024 19:10:33 +0800 Subject: [PATCH] fix: the cursor can't move when release mouse down --- DSView/pv/view/viewport.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DSView/pv/view/viewport.cpp b/DSView/pv/view/viewport.cpp index 428156e5..bd6ac053 100644 --- a/DSView/pv/view/viewport.cpp +++ b/DSView/pv/view/viewport.cpp @@ -1212,6 +1212,8 @@ void Viewport::mouseReleaseEvent(QMouseEvent *event) } } + /* + // This code block prevents the cursor from moving. if (mode == LOGIC && event->button() == Qt::LeftButton){ int clickX = _mouse_down_point.x(); const int64_t index = _view.pixel2index(clickX); @@ -1221,6 +1223,7 @@ void Viewport::mouseReleaseEvent(QMouseEvent *event) set_action(NO_ACTION); } } + */ update(UpdateEventType::UPDATE_EV_MS_UP); }