Removed few-step scroll.

This commit is contained in:
23rd
2018-10-05 23:57:02 +03:00
parent 7122e47817
commit 1fcfd8b13a
2 changed files with 2 additions and 10 deletions
+2 -7
View File
@@ -481,15 +481,10 @@ void NotebookTab::mouseMoveEvent(QMouseEvent *event)
void NotebookTab::wheelEvent(QWheelEvent *event)
{
float mouseMultiplier = getSettings()->mouseScrollMultiplier;
wheelValue += event->delta() * mouseMultiplier;
if (wheelValue > WHEEL_STEP) {
if (event->delta() > 0) {
this->notebook_->selectNextTab();
wheelValue = 0;
} else if (wheelValue < -WHEEL_STEP) {
} else {
this->notebook_->selectPreviousTab();
wheelValue = 0;
}
}