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:
sommermorgentraum 2024-10-16 17:35:49 +08:00 committed by GitHub
parent 48129cdf8d
commit 7d28e495c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -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;

2
hackrf

@ -1 +1 @@
Subproject commit 22c9ff10f934695065b6f79f4d95b812b0ab8365
Subproject commit d4ed8474e532ccdbf605ee71c0f1fa0557da19e1