fix some touch issues

update min screen on input changes
This commit is contained in:
gagarinlg
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent e575d122a1
commit ee1cfdf987
+6 -2
View File
@@ -77,11 +77,15 @@ void MainWindow::setTouchEnabled(bool enable)
}
#endif
#if defined(HARDWARE_TOUCH)
bool getTouchOccured();
#endif
void MainWindow::checkEvents()
{
#if defined(HARDWARE_TOUCH)
if (touchPanelEventOccured()) {
// if (touchPanelEventOccured()) {
if (getTouchOccured()) {
short lastDeltaX = touchState.lastDeltaX;
short lastDeltaY = touchState.lastDeltaY;;
TouchState newTouchState = touchPanelRead();
@@ -230,7 +234,7 @@ void MainWindow::run(bool trash)
// KLK: removed for now. This is now
// called from lvgl event processing when
// necessary
// checkEvents();
checkEvents();
if (trash) {
emptyTrash();