Fix for touch (thanks @player-03)
This commit is contained in:
@@ -805,10 +805,6 @@ class HTML5Window
|
|||||||
|
|
||||||
if (touch == primaryTouch)
|
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);
|
parent.onMouseDown.dispatch(x, y, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -845,7 +841,6 @@ class HTML5Window
|
|||||||
|
|
||||||
if (touch == primaryTouch)
|
if (touch == primaryTouch)
|
||||||
{
|
{
|
||||||
parent.clickCount = 0;
|
|
||||||
parent.onMouseUp.dispatch(x, y, 0);
|
parent.onMouseUp.dispatch(x, y, 0);
|
||||||
primaryTouch = null;
|
primaryTouch = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user