fix split touch window for carousel #1088

This commit is contained in:
eshifri
2021-11-20 20:35:55 +10:00
committed by Peter Feerick
parent 582cbc13a5
commit 0dac734f9c
+4 -1
View File
@@ -247,7 +247,10 @@ bool ViewMain::onTouchEnd(coord_t x, coord_t y)
}
else {
openMenu();
if(x > getParent()->width() / 2)
int x1 = x;
int w1 = getParent()->width();
while (x1 > w1) x1 -= w1;
if (x1 > w1 / 2)
pushEvent(EVT_ROTARY_LEFT);
}
return true;