Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions framework/uicomponents/qml/Muse/UiComponents/polylineplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ void PolylinePlot::init()
dispatcher()->reg(this, "action://cancel", [this](){
// emit signal and let decide model what to do
emit dragCancelled();
// Qt suppresses hover events while a mouse button is held, so the
// ghost-point preview would otherwise stay painted at the press
// position until the user releases and moves the mouse.
m_hoveredOnLine = false;
resetGestureState();
});
}
Expand Down Expand Up @@ -1074,6 +1078,7 @@ void PolylinePlot::resetGestureState()
m_pressedOnPoint = false;
m_pressedPointIndex = INVALID_POINT_IDX;
m_hasDraggedPointDomain = false;
m_hoveredOnLine = false;
m_draggedPointDomain = {};
m_movedSincePress = false;
m_pressPx = QPointF(0.0, 0.0);
Expand Down