Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4440)

Unified Diff: chrome/browser/ui/views/frame/browser_root_view.cc

Issue 1084903002: Fix horizontal scroll tab-switching behavior on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_root_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_root_view.cc b/chrome/browser/ui/views/frame/browser_root_view.cc
index 6cc1a755617af59ef80c7a100bb4b697fecb5639..2a7c06ce59ff30c670a67a28c8fe6f21333e2864 100644
--- a/chrome/browser/ui/views/frame/browser_root_view.cc
+++ b/chrome/browser/ui/views/frame/browser_root_view.cc
@@ -131,7 +131,7 @@ bool BrowserRootView::OnMouseWheel(const ui::MouseWheelEvent& event) {
hittest == HTCAPTION ||
hittest == HTTOP) {
int scroll_offset = abs(event.y_offset()) > abs(event.x_offset()) ?
- event.y_offset() : -event.x_offset();
+ event.y_offset() : event.x_offset();
Browser* browser = browser_view_->browser();
TabStripModel* model = browser->tab_strip_model();
// Switch to the next tab only if not at the end of the tab-strip.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698