Skip to content

Commit 7d28e49

Browse files
authored
workaround for no-touchscreen device (#2301)
* just return un-consumed * submodule ver * submodule ver * merge from upstram next * revert submodule ver * revert submodule ver
1 parent 48129cd commit 7d28e49

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

firmware/application/ui_navigation.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,7 @@ void BMPView::paint(Painter&) {
996996
bool BMPView::on_touch(const TouchEvent event) {
997997
/* the event thing were resolved by HTotoo, talked here https://discord.com/channels/719669764804444213/956561375155589192/1287756910950486027
998998
* the touch screen policy can be better, talked here https://discord.com/channels/719669764804444213/956561375155589192/1198926225897443328
999+
* this workaround discussed here: https://discord.com/channels/719669764804444213/1170738202924044338/1295630640158478418
9991000
*/
10001001

10011002
if (!nav_.is_valid()) {
@@ -1004,11 +1005,8 @@ bool BMPView::on_touch(const TouchEvent event) {
10041005

10051006
switch (event.type) {
10061007
case TouchEvent::Type::Start:
1007-
return true;
1008-
1009-
case TouchEvent::Type::End:
10101008
handle_pop();
1011-
return true;
1009+
return false;
10121010

10131011
default:
10141012
break;

hackrf

0 commit comments

Comments
 (0)