Fix issue with last touch wheel time not being initialised

custom
ailurux 2 months ago
parent 813db15da8
commit ddd591da1c
  1. 3
      src/tangara/input/input_touch_wheel.cpp

@ -54,7 +54,8 @@ TouchWheel::TouchWheel(drivers::NvsStorage& nvs, drivers::TouchWheel& wheel)
is_scrolling_(false), is_scrolling_(false),
threshold_(calculateThreshold(nvs.ScrollSensitivity())), threshold_(calculateThreshold(nvs.ScrollSensitivity())),
is_first_read_(true), is_first_read_(true),
last_angle_(0) {} last_angle_(0),
last_wheel_touch_time_(0) {}
auto TouchWheel::read(lv_indev_data_t* data) -> void { auto TouchWheel::read(lv_indev_data_t* data) -> void {
if (locked_) { if (locked_) {

Loading…
Cancel
Save