]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix calendar click events on context menu #12297
authorPatrik Lindström <patrik@vaadin.com>
Tue, 30 Jul 2013 11:10:01 +0000 (14:10 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 30 Jul 2013 12:50:29 +0000 (12:50 +0000)
Change-Id: Ifb66253ef05677d80d2f1e8bb935e5e4789308de

client/src/com/vaadin/client/ui/calendar/schedule/DateCellDayEvent.java

index c56566bf25172aa0d710d0b841e3712e38a66c9c..b69d2a4fe7ee4b151b9b203f0bf608e9db78194c 100644 (file)
@@ -244,7 +244,8 @@ public class DateCellDayEvent extends FocusableHTML implements
 
     @Override
     public void onMouseUp(MouseUpEvent event) {
-        if (mouseMoveCanceled) {
+        if (mouseMoveCanceled
+                || event.getNativeButton() != NativeEvent.BUTTON_LEFT) {
             return;
         }