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

Unified Diff: sky/engine/web/WebViewImpl.cpp

Issue 876853005: Add wheel support to sky-scrollable (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add missing files Created 5 years, 11 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 | « sky/engine/public/platform/WebInputEvent.h ('k') | sky/examples/example-scrollable.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebViewImpl.cpp
diff --git a/sky/engine/web/WebViewImpl.cpp b/sky/engine/web/WebViewImpl.cpp
index b2db8490c33e788771b5dfd0e34b7f5e74545c2c..c1c8c7b708284a147aa15032000ddfbd9039b0fe 100644
--- a/sky/engine/web/WebViewImpl.cpp
+++ b/sky/engine/web/WebViewImpl.cpp
@@ -339,6 +339,11 @@ bool WebViewImpl::handleInputEvent(const WebInputEvent& inputEvent)
return m_page->mainFrame()->newEventHandler().handleKeyboardEvent(event);
}
+ if (WebInputEvent::isWheelEventType(inputEvent.type)) {
+ const WebWheelEvent& event = static_cast<const WebWheelEvent&>(inputEvent);
+ return m_page->mainFrame()->newEventHandler().handleWheelEvent(event);
+ }
+
return false;
}
« no previous file with comments | « sky/engine/public/platform/WebInputEvent.h ('k') | sky/examples/example-scrollable.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698