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: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 1126463005: Clean up WheelEvent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes" Created 5 years, 7 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: tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
index 816f2b00902d0352a20c39e4d8c63d82e93775f1..6e3bac117b4e781eb0025c0590fe18019f2e328c 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -944,18 +944,7 @@ $if DART2JS
const _CustomEventStreamProvider<WheelEvent>(
Element._determineMouseWheelEventType);
- static String _determineMouseWheelEventType(EventTarget e) {
- if (JS('bool', '#.onwheel !== undefined', e)) {
- // W3C spec, and should be IE9+, but IE has a bug exposing onwheel.
- return 'wheel';
- } else if (JS('bool', '#.onmousewheel !== undefined', e)) {
- // Chrome & IE
- return 'mousewheel';
- } else {
- // Firefox
- return 'DOMMouseScroll';
- }
- }
+ static String _determineMouseWheelEventType(EventTarget e) => 'wheel';
/**
* Static factory designed to expose `transitionend` events to event

Powered by Google App Engine
This is Rietveld 408576698