mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Make sure that drags are processed only when the left button is pressed.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user