From 08d87d4d18ad1080f68400c14deb6f8bf68d327e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Tue, 19 Jun 2012 15:19:10 +0300 Subject: [PATCH] Register mousedown handler correctly --- .../gwt/client/ui/AbstractClickEventHandler.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java index 6c580ea6e3..8ca700700c 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java +++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java @@ -85,13 +85,13 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler, if (hasEventListener()) { if (mouseDownHandlerRegistration == null) { mouseDownHandlerRegistration = registerHandler(this, - MouseUpEvent.getType()); + MouseDownEvent.getType()); mouseUpHandlerRegistration = registerHandler(this, MouseUpEvent.getType()); - contextMenuHandlerRegistration = registerHandler(this, - ContextMenuEvent.getType()); doubleClickHandlerRegistration = registerHandler(this, DoubleClickEvent.getType()); + contextMenuHandlerRegistration = registerHandler(this, + ContextMenuEvent.getType()); } } else { if (mouseDownHandlerRegistration != null) { @@ -103,9 +103,8 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler, mouseDownHandlerRegistration = null; mouseUpHandlerRegistration = null; - contextMenuHandlerRegistration = null; doubleClickHandlerRegistration = null; - + contextMenuHandlerRegistration = null; } } -- 2.39.5