remove breaking change from html5

This commit is contained in:
ShaharMS
2022-09-18 09:22:07 +03:00
parent 4421d2daf0
commit bc13010634
2 changed files with 5 additions and 2 deletions

View File

@@ -613,7 +613,8 @@ class HTML5Window
Browser.window.addEventListener("mouseup", handleMouseEvent);
}
parent.onMouseDown.dispatch(x, y, event.button, event.detail);
window.clickCount = event.detail;
parent.onMouseDown.dispatch(x, y, event.button);
if (parent.onMouseDown.canceled && event.cancelable)
{
@@ -650,7 +651,8 @@ class HTML5Window
event.stopPropagation();
}
parent.onMouseUp.dispatch(x, y, event.button, event.detail);
window.clickCount = event.detail;
parent.onMouseUp.dispatch(x, y, event.button);
if (parent.onMouseUp.canceled && event.cancelable)
{

View File

@@ -94,6 +94,7 @@ class Window
@:allow(openfl.display.Stage)
@:allow(lime.app.Application)
@:allow(lime._internal.backend.html5.HTML5Window)
private var clickCount:Int = 0;
@:noCompletion private var __attributes:WindowAttributes;