mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-06-17 14:22:02 +00:00
Replace onmousewheel event
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ function postLoadPage()
|
|||||||
return application.CanvasOnMouseUp(e);
|
return application.CanvasOnMouseUp(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
application.canvas.onmousewheel = function (e)
|
application.canvas.onwheel = function (e)
|
||||||
{
|
{
|
||||||
var e = window.event || e; // old IE support
|
var e = window.event || e; // old IE support
|
||||||
var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
|
var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
|
||||||
|
|||||||
Reference in New Issue
Block a user