fix scroll orientation for webkit based browsers
This commit is contained in:
parent
4e9c8aae48
commit
edf46ebd56
1 changed files with 3 additions and 3 deletions
|
|
@ -114,11 +114,11 @@ require.def("ace/lib/event", ["ace/lib/core"], function(core) {
|
||||||
var listener = function(e) {
|
var listener = function(e) {
|
||||||
if (e.wheelDelta !== undefined) {
|
if (e.wheelDelta !== undefined) {
|
||||||
if (e.wheelDeltaX !== undefined) {
|
if (e.wheelDeltaX !== undefined) {
|
||||||
e.wheelX = e.wheelDeltaX / 8;
|
e.wheelX = -e.wheelDeltaX / 8;
|
||||||
e.wheelY = e.wheelDeltaY / 8;
|
e.wheelY = -e.wheelDeltaY / 8;
|
||||||
} else {
|
} else {
|
||||||
e.wheelX = 0;
|
e.wheelX = 0;
|
||||||
e.wheelY = e.wheelDelta / 8;
|
e.wheelY = -e.wheelDelta / 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue