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

Unified Diff: ui/views/cocoa/bridged_content_view.mm

Issue 456913002: MacViews: Support continuous scrolling and horizontal scrolling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for rsesek Created 6 years, 3 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
Index: ui/views/cocoa/bridged_content_view.mm
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm
index b5b1b96739ca53d474e6e30cf11712c7e1385017..66624a1a355b4960d9d6ce4cc3efa81f632db99f 100644
--- a/ui/views/cocoa/bridged_content_view.mm
+++ b/ui/views/cocoa/bridged_content_view.mm
@@ -149,7 +149,11 @@
}
- (void)scrollWheel:(NSEvent*)theEvent {
- [self handleMouseEvent:theEvent];
+ if (!hostedView_)
+ return;
+
+ ui::MouseWheelEvent event(theEvent);
+ hostedView_->GetWidget()->OnMouseEvent(&event);
}
- (void)deleteBackward:(id)sender {

Powered by Google App Engine
This is Rietveld 408576698