make shork absolute

This commit is contained in:
Never Gude 2026-02-22 13:35:01 +01:00
parent ea6fc08056
commit a0e0703704
4 changed files with 6 additions and 6 deletions

View file

@ -10,8 +10,8 @@ shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_
let mouse = {x: 0, y: 0}; let mouse = {x: 0, y: 0};
onmousemove = function(e){ onmousemove = function(e){
mouse.x = e.clientX; mouse.x = e.pageX;
mouse.y = e.clientY; mouse.y = e.pageY;
} }
let direction = 0; let direction = 0;

View file

@ -57,7 +57,7 @@ main {
} }
#shork { #shork {
position: fixed; position: absolute;
z-index: 1; z-index: 1;
left: -36px; left: -36px;
top: -32px; top: -32px;

View file

@ -10,8 +10,8 @@ shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_
let mouse = {x: 0, y: 0}; let mouse = {x: 0, y: 0};
onmousemove = function(e){ onmousemove = function(e){
mouse.x = e.clientX; mouse.x = e.pageX;
mouse.y = e.clientY; mouse.y = e.pageY;
} }
let direction = 0; let direction = 0;

View file

@ -57,7 +57,7 @@ main {
} }
#shork { #shork {
position: fixed; position: absolute;
z-index: 1; z-index: 1;
left: -36px; left: -36px;
top: -32px; top: -32px;