The code snippet sets the auto repeat delay and interval for the "leftTopBtn" button.

  • The auto repeat delay is the amount of time in milliseconds that needs to elapse before the button starts to auto repeat when held down. In this case, it is set to 400 milliseconds.
  • The auto repeat interval is the amount of time in milliseconds between each auto repeat click signal when the button is held down. In this case, it is set to 50 milliseconds.
ui-leftTopBtn-setAutoRepeatDelay400;触发长按的时间 ui-leftTopBtn-setAutoRepeatInterval50;长按时click信号间隔

原文地址: http://www.cveoy.top/t/topic/hCZK 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录