优化屏幕长按事件,更容易触发
authorSnickerSun <snickersun@163.com>
Wed, 12 Jun 2024 13:32:46 +0000 (21:32 +0800)
committerSnickerSun <snickersun@163.com>
Wed, 12 Jun 2024 13:32:46 +0000 (21:32 +0800)
code/sdk/middleware/services/gui/uikit/utils/interfaces/innerkits/graphic_config.h

index a313837..4494a07 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 = 1000;
+static constexpr uint16_t INDEV_LONG_PRESS_TIME = 300;//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. */