bugfix
authorBenoît Pin <pin@cri.ensmp.fr>
Thu, 10 Jul 2014 13:52:27 +0000 (15:52 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Thu, 10 Jul 2014 13:52:27 +0000 (15:52 +0200)
skins/ajax_scripts/javascript_events_api.js

index b4df40e..2539fd9 100644 (file)
@@ -220,7 +220,7 @@ function _build_getWindowScrollX() {
        }
        else {
                return function(){
-                       return document.body.scrollLeft;
+                       return document.documentElement.scrollLeft;
                };
        }
 }
@@ -233,7 +233,7 @@ function _build_getWindowScrollY() {
        }
        else {
                return function(){
-                       return document.body.scrollTop;
+                       return document.documentElement.scrollTop;
                };
        }
 }