Skip to content

Commit

Permalink
Merge pull request #209 from BarrensZeppelin/master
Browse files Browse the repository at this point in the history
Fix missing release of ThumbWheel touch
  • Loading branch information
PixlOne authored Mar 13, 2021
2 parents a0687c8 + f0de58e commit 916fa86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logid/features/ThumbWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -297,4 +297,4 @@ const std::shared_ptr<actions::Action>& ThumbWheel::Config::tapAction() const
const std::shared_ptr<actions::Action>& ThumbWheel::Config::touchAction() const
{
return _touch_action;
}
}

0 comments on commit 916fa86

Please sign in to comment.