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

wheelDelta -> wheelDeltaY

parent dd8d4020
...@@ -1938,23 +1938,17 @@ function CEditorPage(api) ...@@ -1938,23 +1938,17 @@ 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 = (e.wheelDeltaY > 0) ? -45 : 45;
deltaY = -45 * e.wheelDeltaY / 120; deltaY = -45 * e.wheelDeltaY / 120;
} }
} if (undefined !== e.wheelDeltaX && 0 !== e.wheelDeltaX)
if (e.wheelDeltaX !== undefined)
{
if (e.wheelDeltaX != 0)
{ {
//deltaX = (e.wheelDeltaX > 0) ? -45 : 45; //deltaX = (e.wheelDeltaX > 0) ? -45 : 45;
deltaX = -45 * e.wheelDeltaX / 120; deltaX = -45 * e.wheelDeltaX / 120;
} }
} }
}
deltaX >>= 0; deltaX >>= 0;
deltaY >>= 0; deltaY >>= 0;
......
...@@ -1981,23 +1981,17 @@ function CEditorPage(api) ...@@ -1981,23 +1981,17 @@ 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 = (e.wheelDeltaY > 0) ? -45 : 45;
deltaY = -45 * e.wheelDeltaY / 120; deltaY = -45 * e.wheelDeltaY / 120;
} }
} if (undefined !== e.wheelDeltaX && 0 !== e.wheelDeltaX)
if (e.wheelDeltaX !== undefined)
{
if (e.wheelDeltaX != 0)
{ {
//deltaX = (e.wheelDeltaX > 0) ? -45 : 45; //deltaX = (e.wheelDeltaX > 0) ? -45 : 45;
deltaX = -45 * e.wheelDeltaX / 120; deltaX = -45 * e.wheelDeltaX / 120;
} }
} }
}
deltaX >>= 0; deltaX >>= 0;
deltaY >>= 0; deltaY >>= 0;
......
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