This commit is contained in:
Rasmus Karlsson
2019-08-11 21:08:18 +02:00
parent 391d75f208
commit cd5972522b
5 changed files with 32 additions and 37 deletions
+2 -3
View File
@@ -562,9 +562,8 @@ void NotebookTab::wheelEvent(QWheelEvent *event)
const auto defaultMouseDelta = 120;
const auto delta = event->delta();
const auto selectTab = [this](int delta) {
delta > 0
? this->notebook_->selectPreviousTab()
: this->notebook_->selectNextTab();
delta > 0 ? this->notebook_->selectPreviousTab()
: this->notebook_->selectNextTab();
};
// If it's true
// Then the user uses the trackpad or perhaps the most accurate mouse