Fix touchpad tapping.
Don't apply missing-mouse-up logic to mouse-down events. The logic depends on mouse-state, and the OS-synthesized mouse-up and mouse-down events from a tap don't contain any state. Fixes: lp:1737010 * https://bugs.launchpad.net/kicad/+bug/1737010
This commit is contained in:
parent
6f3e55d344
commit
833534537d
|
@ -169,7 +169,8 @@ bool TOOL_DISPATCHER::handleMouseButton( wxEvent& aEvent, int aIndex, bool aMoti
|
|||
// in the dragging mode even if the mouse button is not held anymore
|
||||
if( st->pressed && !state )
|
||||
up = true;
|
||||
else if( !st->pressed && state )
|
||||
// Don't apply same logic to down events as it kills touchpad tapping
|
||||
else if( !st->pressed && type == st->downEvent )
|
||||
down = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue