1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 10:16:34 +01:00

Fixed zooming with Ctrl+wheel for some users.

closes #451
This commit is contained in:
nowrep 2012-07-13 18:00:03 +02:00
parent 232350c910
commit 69aeeac1be
3 changed files with 4 additions and 11 deletions

View File

@ -1,6 +1,7 @@
Version 1.3.1
* not yet released
* Ctrl+Enter shortcut in PIM plugin now also works with enter on numpad
* fixed zooming with Ctrl+Wheel for some users
* fixed issues with cookies filtering
* fixed $subdocument matching in AdBlock
* fixed $third-party in AdBlock rules when Referer header is empty

View File

@ -108,9 +108,7 @@ void ButtonWithMenu::wheelEvent(QWheelEvent* event)
return;
}
int numDegrees = event->delta() / 8;
int numSteps = numDegrees / 15;
if (numSteps == 1) {
if (event->delta() > 0) {
if (currItemIndex != 0) {
setCurrentItem(m_items.at(currItemIndex - 1));
}

View File

@ -952,15 +952,9 @@ void WebView::wheelEvent(QWheelEvent* event)
}
if (event->modifiers() & Qt::ControlModifier) {
int numDegrees = event->delta() / 8;
int numSteps = numDegrees / 15;
if (numSteps == 1) {
zoomIn();
}
else {
zoomOut();
}
event->delta() > 0 ? zoomIn() : zoomOut();
event->accept();
return;
}