diff --git a/project/include/ui/MouseEvent.h b/project/include/ui/MouseEvent.h index c3f86aa9a..8c8cbea4e 100644 --- a/project/include/ui/MouseEvent.h +++ b/project/include/ui/MouseEvent.h @@ -24,13 +24,13 @@ namespace lime { hl_type* t; int button; + int clickCount; double movementX; double movementY; MouseEventType type; int windowID; double x; double y; - int clickCount; static ValuePointer* callback; static ValuePointer* eventObject; diff --git a/src/lime/_internal/backend/html5/HTML5Window.hx b/src/lime/_internal/backend/html5/HTML5Window.hx index a5a636025..ec229216f 100644 --- a/src/lime/_internal/backend/html5/HTML5Window.hx +++ b/src/lime/_internal/backend/html5/HTML5Window.hx @@ -613,7 +613,7 @@ class HTML5Window Browser.window.addEventListener("mouseup", handleMouseEvent); } - parent.onMouseDown.dispatch(x, y, event.button); + parent.onMouseDown.dispatch(x, y, event.button, event.detail); if (parent.onMouseDown.canceled && event.cancelable) { @@ -650,7 +650,7 @@ class HTML5Window event.stopPropagation(); } - parent.onMouseUp.dispatch(x, y, event.button); + parent.onMouseUp.dispatch(x, y, event.button, event.detail); if (parent.onMouseUp.canceled && event.cancelable) { diff --git a/src/lime/_internal/backend/native/NativeApplication.hx b/src/lime/_internal/backend/native/NativeApplication.hx index 55bbc602a..7516133a1 100644 --- a/src/lime/_internal/backend/native/NativeApplication.hx +++ b/src/lime/_internal/backend/native/NativeApplication.hx @@ -802,7 +802,7 @@ class NativeApplication public function clone():MouseEventInfo { - return new MouseEventInfo(type, windowID, x, y, button, movementX, movementY); + return new MouseEventInfo(type, windowID, x, y, button, movementX, movementY, clickCount); } }