Introduction
Introduction Statistics Contact Development Disclaimer Help
use page[XY]offset instead of scroll[XY] for compatibility - jscancer - Javascr…
git clone git://git.codemadness.org/jscancer
Log
Files
Refs
README
LICENSE
---
commit 7f49cb4a96cdbcdd229ea47fa386c1290ef3330c
parent f9290a2ec21da04fb5e93fcf6c4df10dcd76de0a
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 29 May 2017 21:26:28 +0200
use page[XY]offset instead of scroll[XY] for compatibility
Diffstat:
M datalist/datalist.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/datalist/datalist.js b/datalist/datalist.js
@@ -64,8 +64,8 @@ function datalist_init(input) {
left += c.offsetLeft;
top += c.offsetTop;
if (c.style.position == "fixed") {
- left += window.scrollX;
- top += window.scrollY;
+ left += window.pageXOffset;
+ top += window.pageYOffset;
break;
}
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.