From b7578182e6eca18f316dcd139f5bfc7f6783fa64 Mon Sep 17 00:00:00 2001 From: 7IN0SAN9 Date: Tue, 12 Sep 2023 22:56:26 +0800 Subject: [PATCH] swip up to page back by default --- src/hasp/hasp_attribute_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasp/hasp_attribute_helper.h b/src/hasp/hasp_attribute_helper.h index dbdae43c..2b48bcbd 100644 --- a/src/hasp/hasp_attribute_helper.h +++ b/src/hasp/hasp_attribute_helper.h @@ -237,7 +237,7 @@ const char* my_obj_get_action(lv_obj_t* obj) void my_obj_set_swipe(lv_obj_t* obj, const char* payload) { hasp_ext_user_data_t* ext = (hasp_ext_user_data_t*)obj->user_data.ext; - static const char* _swipejson = R"({"down":"page back","left":"page next","right":"page prev"})"; + static const char* _swipejson = R"({"down":"page back","left":"page next","right":"page prev","up":"page back"})"; // extended tag exists, free old tag if it's not the const _swipejson if(ext) {