diff options
Diffstat (limited to 'plugingui')
| -rw-r--r-- | plugingui/eventhandler.cc | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc index 2cdb6b1..2177433 100644 --- a/plugingui/eventhandler.cc +++ b/plugingui/eventhandler.cc @@ -146,14 +146,14 @@ void EventHandler::processEvents()  		case EventType::button:  			{ -				if(lastWasDoubleClick) +				auto buttonEvent = static_cast<ButtonEvent*>(event.get()); + +				if(lastWasDoubleClick && (buttonEvent->direction == Direction::down))  				{  					lastWasDoubleClick = false;  					continue;  				} -				auto buttonEvent = static_cast<ButtonEvent*>(event.get()); -  				lastWasDoubleClick = buttonEvent->doubleClick;  				auto widget = window.find(buttonEvent->x, buttonEvent->y); | 
