Make sure that drags are processed only when the left button is pressed.

This commit is contained in:
David Given
2022-08-07 17:04:43 +02:00
parent 073a8f5fbd
commit f39b2801b8

View File

@@ -363,7 +363,7 @@ void FluxViewerControl::OnMouseMotion(wxMouseEvent& event)
{
/* end drag, do nothing */
}
else if (event.Dragging())
else if (event.Dragging() && event.LeftIsDown())
{
int dx = _dragStartX - event.GetX();
nanoseconds_t dt = dx * _nanosecondsPerPixel;