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

wheelDelta -> wheelDeltaY

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