mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-03 08:15:38 +00:00
Merge pull request #43 from suchatad/mousewheel_fix
Fix: Mousewheel zooming in Firefox
This commit is contained in:
commit
4eeb746d21
@ -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)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user