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

Unified Diff: content/browser/renderer_host/web_input_event_aura.cc

Issue 739013008: Explicitly suppress scrolling for wheel events that will trigger zooming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
Index: content/browser/renderer_host/web_input_event_aura.cc
diff --git a/content/browser/renderer_host/web_input_event_aura.cc b/content/browser/renderer_host/web_input_event_aura.cc
index 4fe79c16dd1aae6893132ca789bc567c5449fa50..8973fb12cc7d4933ff762bd51d609f416aead513 100644
--- a/content/browser/renderer_host/web_input_event_aura.cc
+++ b/content/browser/renderer_host/web_input_event_aura.cc
@@ -197,6 +197,12 @@ blink::WebMouseWheelEvent MakeWebMouseWheelEvent(ui::MouseWheelEvent* event) {
webkit_event.globalX = root_point.x();
webkit_event.globalY = root_point.y();
+#if !defined(OS_MACOSX)
tdresser 2014/11/27 15:06:08 Are _aura files compiled on Mac? Don't we want dif
lanwei 2014/12/02 06:28:54 Done.
+ if ((webkit_event.modifiers & blink::WebInputEvent::ControlKey) &&
+ !webkit_event.hasPreciseScrollingDeltas) {
Rick Byers 2014/11/27 17:31:32 Actually, now that I review the rest of your CL yo
Rick Byers 2014/11/27 17:31:32 I don't think we should be duplicating the logic f
+ webkit_event.suppressScroll = true;
Rick Byers 2014/11/27 17:31:32 You just need a comment here saying that by suppre
Rick Byers 2014/11/27 17:31:32 You need to set this bit in InputRouterImpl::SendS
lanwei 2014/12/02 06:28:54 Done.
lanwei 2014/12/02 06:28:54 Done.
lanwei 2014/12/02 06:28:54 Done.
+ }
+#endif
return webkit_event;
}
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | content/browser/web_contents/web_contents_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698