Skip to content

Commit

Permalink
fix mouse wheel event bug
Browse files Browse the repository at this point in the history
The arguments are in the wrong order
  • Loading branch information
L-Super committed Sep 1, 2023
1 parent b701be7 commit 9765bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/details/QCefViewPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ QCefViewPrivate::onViewWheelEvent(QWheelEvent* event)
e.x = p.x();
e.y = p.y();
pCefBrowser_->GetHost()->SendMouseWheelEvent(
e, m & Qt::ShiftModifier ? 0 : d.x(), m & Qt::ShiftModifier ? 0 : d.y());
e, m & Qt::ShiftModifier ? d.x() : 0, m & Qt::ShiftModifier ? d.y() : 0);
}
// #endif
}
Expand Down

0 comments on commit 9765bdc

Please sign in to comment.