长按事件优化
authorSnickerSun <snickersun@163.com>
Thu, 13 Jun 2024 11:27:07 +0000 (19:27 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 13 Jun 2024 11:27:07 +0000 (19:27 +0800)
code/sdk/middleware/services/gui/uikit/utils/interfaces/innerkits/graphic_config.h

index 4494a07..01c86da 100755 (executable)
@@ -594,7 +594,7 @@ static constexpr uint8_t INDEV_DRAG_LIMIT = 10;
 /* Maximum depth of view nesting. The default value is <b>64</b>. */
 static constexpr uint8_t COMPONENT_NESTING_DEPTH = 64;
 /* Long-press event threshold. The default value is <b>1000</b> ms. */
-static constexpr uint16_t INDEV_LONG_PRESS_TIME = 300;//1000;
+static constexpr uint16_t INDEV_LONG_PRESS_TIME = 450;//1000;
 /* Delay for reporting a press event on a draggable object. The default value is <b>100</b> ms. */
 static constexpr uint16_t INDEV_PRESS_TIME_IN_DRAG = 100;
 /* Maximum number of bytes in a text that can be continuously displayed. The default value is <b>4096</b> bytes. */