Only one EVT_TOUCH_FIRST at a time
This commit is contained in:
@@ -472,13 +472,14 @@ bool LuaWidget::onTouchStart(coord_t x, coord_t y)
|
|||||||
{
|
{
|
||||||
TRACE_WINDOWS("LuaWidget received touch start (%d) x=%d;y=%d", hasFocus(), x, y);
|
TRACE_WINDOWS("LuaWidget received touch start (%d) x=%d;y=%d", hasFocus(), x, y);
|
||||||
|
|
||||||
|
// Only one EVT_TOUCH_FIRST at a time, and also start timer for possible TAP
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
event = EVT_TOUCH_FIRST;
|
if (lastTouchDown == 0) {
|
||||||
touchX = x;
|
event = EVT_TOUCH_FIRST;
|
||||||
touchY = y;
|
touchX = x;
|
||||||
|
touchY = y;
|
||||||
if (lastTouchDown == 0)
|
|
||||||
lastTouchDown = get_tmr10ms();
|
lastTouchDown = get_tmr10ms();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user