diff --git a/html/js/scripts.js b/html/js/scripts.js index f1de3b0b7..37b4e95d5 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -1487,7 +1487,7 @@ function calcy(p_sy) { sy = document.documentElement.scrollTop + p_sy; } - if ( width < 801 ) { + if ( document.viewport.getDimensions().width < 801 ) { sy=sy/2; } return sy;