Skip to content

Commit c828a43

Browse files
vicbvsavkin
authored andcommitted
text(NgEvent): fix the mousewheel event on IE & Safari
1 parent e426b2e commit c828a43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/directive/ng_events_spec.dart

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library ng_events_spec;
22

33
import '../_specs.dart';
44
import 'dart:html' as dom;
5+
import 'package:browser_detect/browser_detect.dart';
56

67
void addTest(String name, [String eventType='MouseEvent', String eventName, exclusive]) {
78
if (eventName == null) eventName = name;
@@ -68,7 +69,11 @@ main() {
6869
addTest('mouseout');
6970
addTest('mouseover');
7071
addTest('mouseup');
71-
addTest('mousewheel', 'MouseEvent', 'wheel');
72+
if (browser.isIe || browser.isSafari) {
73+
addTest('mousewheel', 'MouseEvent');
74+
} else {
75+
addTest('mousewheel', 'MouseEvent', 'wheel');
76+
}
7277
addTest('paste');
7378
addTest('reset');
7479
addTest('scroll');

0 commit comments

Comments
 (0)