fix split touch window for carousel #1088
This commit is contained in:
@@ -247,7 +247,10 @@ bool ViewMain::onTouchEnd(coord_t x, coord_t y)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
openMenu();
|
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);
|
pushEvent(EVT_ROTARY_LEFT);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user