-
Notifications
You must be signed in to change notification settings - Fork 24
/
test-results.txt
54 lines (39 loc) · 1.34 KB
/
test-results.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Introduction
------------
This script was created during a project when I was working at the web agency BombayWorks. I did some testing in different browsers to know how to do this. The project only required support down to IE 8, so IE 6 and 7 are not in the test results, but they probably give the same result, because it works equally good in these versions.
Browser differences
-------------------
There are two properties where you can access wheel data: wheelDelta and detail.
All browsers except Firefox use wheelData, but Opera gives another value than the rest.
All browsers except IE8 also use detail, but only Firefox and Opera give a correct result.
Below are the different browsers that show the same result for each property.
wheelDelta
IE8
IE9
Safari (val * 10 will be the same as the others)
Chrome
detail
Firefox
Opera
For one scroll update these values will be returned from each property.
wheelDelta: -120
detail: 1
The values vary though, depending on the input device. Trackpads in Safari outputs
a much lower value to give a smoother experience.
Test results
------------
These are the test values from each browser, using a regular mouse wheel, scrolling 1 step
wheelDelta
Safari: -12
Chrome: -120
Firefox: undefined
Opera: -40
IE8: -120
IE9: -120
detail
Safari: 0
Chrome: 0
Firefox: 1
Opera: 1
IE8: undefined
IE9: 0