fix: Resolve some issues with touch TE_SLIDE_END, and tapCount on NV14 (#1434)
* move TE_SLIDE_END handling for slide inertia to libopenui reset tapCount on TE_SLIDE_END on NV14 * Bump libopenui Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
Peter Feerick
parent
4048983ce5
commit
88a4458cfe
@@ -793,7 +793,7 @@ struct TouchState touchPanelRead()
|
||||
internalTouchState.tapCount = tapCount;
|
||||
tapTime = now;
|
||||
}
|
||||
} else if (internalTouchState.event != TE_SLIDE_END) {
|
||||
} else {
|
||||
internalTouchState.event = TE_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -545,15 +545,15 @@ TouchState touchPanelRead()
|
||||
}
|
||||
downTime = 0;
|
||||
} else {
|
||||
internalTouchState.x = LCD_WIDTH;
|
||||
internalTouchState.y = LCD_HEIGHT;
|
||||
tapCount = 0;
|
||||
internalTouchState.tapCount = 0;
|
||||
internalTouchState.event = TE_SLIDE_END;
|
||||
}
|
||||
}
|
||||
TouchState ret = internalTouchState;
|
||||
internalTouchState.deltaX = 0;
|
||||
internalTouchState.deltaY = 0;
|
||||
if(internalTouchState.event == TE_UP)
|
||||
if(internalTouchState.event == TE_UP || internalTouchState.event == TE_SLIDE_END)
|
||||
internalTouchState.event = TE_NONE;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
Submodule radio/src/thirdparty/libopenui updated: bfa6720b9f...f193395874
Reference in New Issue
Block a user