Commit a1a60033 authored by Alexander.Trofimov's avatar Alexander.Trofimov

wheelDelta -> wheelDeltaY

parent dd8d4020
...@@ -1938,21 +1938,15 @@ function CEditorPage(api) ...@@ -1938,21 +1938,15 @@ function CEditorPage(api)
} }
// Webkit // Webkit
if (e.wheelDeltaY !== undefined) if (undefined !== e.wheelDeltaY && 0 !== e.wheelDeltaY)
{ {
if (e.wheelDelta != 0) //deltaY = (e.wheelDeltaY > 0) ? -45 : 45;
{ deltaY = -45 * e.wheelDeltaY / 120;
//deltaY = (e.wheelDeltaY > 0) ? -45 : 45;
deltaY = -45 * e.wheelDeltaY / 120;
}
} }
if (e.wheelDeltaX !== undefined) if (undefined !== e.wheelDeltaX && 0 !== e.wheelDeltaX)
{ {
if (e.wheelDeltaX != 0) //deltaX = (e.wheelDeltaX > 0) ? -45 : 45;
{ deltaX = -45 * e.wheelDeltaX / 120;
//deltaX = (e.wheelDeltaX > 0) ? -45 : 45;
deltaX = -45 * e.wheelDeltaX / 120;
}
} }
} }
......
...@@ -1981,21 +1981,15 @@ function CEditorPage(api) ...@@ -1981,21 +1981,15 @@ function CEditorPage(api)
} }
// Webkit // Webkit
if (e.wheelDeltaY !== undefined) if (undefined !== e.wheelDeltaY && 0 !== e.wheelDeltaY)
{ {
if (e.wheelDelta != 0) //deltaY = (e.wheelDeltaY > 0) ? -45 : 45;
{ deltaY = -45 * e.wheelDeltaY / 120;
//deltaY = (e.wheelDeltaY > 0) ? -45 : 45;
deltaY = -45 * e.wheelDeltaY / 120;
}
} }
if (e.wheelDeltaX !== undefined) if (undefined !== e.wheelDeltaX && 0 !== e.wheelDeltaX)
{ {
if (e.wheelDeltaX != 0) //deltaX = (e.wheelDeltaX > 0) ? -45 : 45;
{ deltaX = -45 * e.wheelDeltaX / 120;
//deltaX = (e.wheelDeltaX > 0) ? -45 : 45;
deltaX = -45 * e.wheelDeltaX / 120;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment