Skip to content

Commit

Permalink
Disable wheel events during the tutorials - VPN-2433 (#3810)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakulf authored Jun 22, 2022
1 parent 19f0bef commit d2dd165
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/itempicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
ItemPicker::ItemPicker(QObject* parent) : QObject(parent) {}

bool ItemPicker::eventFilter(QObject* obj, QEvent* event) {
if (event->type() == QEvent::Wheel) {
return true;
}

if (m_lastEvent == event) {
return QObject::eventFilter(obj, event);
}
Expand Down

0 comments on commit d2dd165

Please sign in to comment.