5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-09 23:00:26 +00:00

Fix scrolling in Firefox

This commit is contained in:
Vanhala Antti 2015-01-16 12:06:35 +02:00
parent ecfccaf70e
commit 2651684978

View File

@ -384,7 +384,6 @@ $(document).ready(function() {
function handleScroll(e) { function handleScroll(e) {
var mouse = mousePos(e); var mouse = mousePos(e);
var e = window.event;
var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail))); var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
var ratio = (delta < 0) ? (3 / 4) : 1 + (1 / 3); var ratio = (delta < 0) ? (3 / 4) : 1 + (1 / 3);