From f0de58e76ef9b5a62b7e1ef7bf8f7c2371deaf75 Mon Sep 17 00:00:00 2001 From: Oskar Haarklou Veileborg Date: Tue, 2 Mar 2021 12:20:01 +0100 Subject: [PATCH] Fix missing release of ThumbWheel touch --- src/logid/features/ThumbWheel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logid/features/ThumbWheel.cpp b/src/logid/features/ThumbWheel.cpp index 57bb055..9a4674d 100644 --- a/src/logid/features/ThumbWheel.cpp +++ b/src/logid/features/ThumbWheel.cpp @@ -120,7 +120,7 @@ void ThumbWheel::_handleEvent(hidpp20::ThumbWheel::ThumbwheelEvent event) _last_touch = !_last_touch; auto action = _config.touchAction(); if(action) { - if(_last_proxy) + if(_last_touch) action->press(); else action->release(); @@ -297,4 +297,4 @@ const std::shared_ptr& ThumbWheel::Config::tapAction() const const std::shared_ptr& ThumbWheel::Config::touchAction() const { return _touch_action; -} \ No newline at end of file +}