There was an error while loading. Please reload this page.
1 parent 7c181cf commit 5402bfbCopy full SHA for 5402bfb
1 file changed
assets/main.mjs
@@ -47,8 +47,8 @@ function updateGrid() {
47
for (let line of lines) {
48
const rect = line.getBoundingClientRect();
49
lineCache.set(line, {
50
- x: rect.left + rect.width / 2,
51
- y: rect.top + rect.height / 2
+ x: rect.left + rect.width / 2 + window.scrollX,
+ y: rect.top + rect.height / 2 + window.scrollY
52
});
53
}
54
0 commit comments