From bf04e38e2ef9e8ade5d6a155ecfab4f446796f26 Mon Sep 17 00:00:00 2001 From: Shahar Marcus <88977041+ShaharMS@users.noreply.github.com> Date: Sat, 1 Oct 2022 20:01:45 +0300 Subject: [PATCH] Fix for touch (thanks @player-03) --- src/lime/_internal/backend/html5/HTML5Window.hx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/lime/_internal/backend/html5/HTML5Window.hx b/src/lime/_internal/backend/html5/HTML5Window.hx index 13eac76cb..ac82ea246 100644 --- a/src/lime/_internal/backend/html5/HTML5Window.hx +++ b/src/lime/_internal/backend/html5/HTML5Window.hx @@ -805,10 +805,6 @@ class HTML5Window if (touch == primaryTouch) { - // touches shouldn't raise clickCounts value - // but they also indicate the end of a click sequence - // (you expect click count to reset after you stop clicking with the mouse) - parent.clickCount = 0; parent.onMouseDown.dispatch(x, y, 0); } } @@ -845,7 +841,6 @@ class HTML5Window if (touch == primaryTouch) { - parent.clickCount = 0; parent.onMouseUp.dispatch(x, y, 0); primaryTouch = null; }