OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:async'; | 3 import 'dart:async'; |
4 import 'dart:collection'; | 4 import 'dart:collection'; |
5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
6 import 'dart:indexed_db'; | 6 import 'dart:indexed_db'; |
7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
9 import 'dart:math'; | 9 import 'dart:math'; |
10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
(...skipping 22413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22424 } | 22424 } |
22425 event._initMouseScrollEvent(type, canBubble, cancelable, view, detail, | 22425 event._initMouseScrollEvent(type, canBubble, cancelable, view, detail, |
22426 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, | 22426 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, |
22427 metaKey, button, relatedTarget, axis); | 22427 metaKey, button, relatedTarget, axis); |
22428 } else { | 22428 } else { |
22429 // Fallthrough for Dartium. | 22429 // Fallthrough for Dartium. |
22430 event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail, | 22430 event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail, |
22431 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, | 22431 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, |
22432 metaKey, button, relatedTarget); | 22432 metaKey, button, relatedTarget); |
22433 event.$dom_initWebKitWheelEvent(wheelDeltaX, | 22433 event.$dom_initWebKitWheelEvent(wheelDeltaX, |
22434 (wheelDeltaY / 120).toInt(), // Chrome does an auto-convert to pixels. | 22434 wheelDeltaY ~/ 120, // Chrome does an auto-convert to pixels. |
22435 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, | 22435 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, |
22436 metaKey); | 22436 metaKey); |
22437 } | 22437 } |
22438 | 22438 |
22439 return event; | 22439 return event; |
22440 } | 22440 } |
22441 | 22441 |
22442 | 22442 |
22443 @DocsEditable @DomName('WheelEvent.webkitDirectionInvertedFromDevice') | 22443 @DocsEditable @DomName('WheelEvent.webkitDirectionInvertedFromDevice') |
22444 final bool webkitDirectionInvertedFromDevice; | 22444 final bool webkitDirectionInvertedFromDevice; |
(...skipping 6393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
28838 _position = nextPosition; | 28838 _position = nextPosition; |
28839 return true; | 28839 return true; |
28840 } | 28840 } |
28841 _current = null; | 28841 _current = null; |
28842 _position = _array.length; | 28842 _position = _array.length; |
28843 return false; | 28843 return false; |
28844 } | 28844 } |
28845 | 28845 |
28846 T get current => _current; | 28846 T get current => _current; |
28847 } | 28847 } |
OLD | NEW |