Index: sky/engine/core/view/View.cpp |
diff --git a/sky/engine/core/view/View.cpp b/sky/engine/core/view/View.cpp |
index cc1a152f93faefa1ca6c3ad9d55bf132726a78f2..832ecce70df3e9ac446e3463327314b0ac2e5024 100644 |
--- a/sky/engine/core/view/View.cpp |
+++ b/sky/engine/core/view/View.cpp |
@@ -53,9 +53,10 @@ void View::setDisplayMetrics(const SkyDisplayMetrics& metrics) |
m_displayMetrics = metrics; |
} |
-bool View::handleInputEvent(PassRefPtr<Event> event) |
+void View::handleInputEvent(PassRefPtr<Event> event) |
{ |
- return m_eventCallback && m_eventCallback->handleEvent(event.get()); |
+ if (m_eventCallback) |
+ m_eventCallback->handleEvent(event.get()); |
} |
void View::beginFrame(base::TimeTicks frameTime) |