mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 00:35:59 -04:00
workaround for no-touchscreen device (#2301)
* just return un-consumed * submodule ver * submodule ver * merge from upstram next * revert submodule ver * revert submodule ver
This commit is contained in:
parent
48129cdf8d
commit
7d28e495c2
2 changed files with 3 additions and 5 deletions
|
@ -996,6 +996,7 @@ void BMPView::paint(Painter&) {
|
|||
bool BMPView::on_touch(const TouchEvent event) {
|
||||
/* the event thing were resolved by HTotoo, talked here https://discord.com/channels/719669764804444213/956561375155589192/1287756910950486027
|
||||
* the touch screen policy can be better, talked here https://discord.com/channels/719669764804444213/956561375155589192/1198926225897443328
|
||||
* this workaround discussed here: https://discord.com/channels/719669764804444213/1170738202924044338/1295630640158478418
|
||||
*/
|
||||
|
||||
if (!nav_.is_valid()) {
|
||||
|
@ -1004,11 +1005,8 @@ bool BMPView::on_touch(const TouchEvent event) {
|
|||
|
||||
switch (event.type) {
|
||||
case TouchEvent::Type::Start:
|
||||
return true;
|
||||
|
||||
case TouchEvent::Type::End:
|
||||
handle_pop();
|
||||
return true;
|
||||
return false;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue