mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 12:50:27 +00:00
Fix scrolling in Firefox
This commit is contained in:
parent
ecfccaf70e
commit
2651684978
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user