diff --git a/public_html/eh/eh/eh/eh-eh/scripts/shork.js b/public_html/eh/eh/eh/eh-eh/scripts/shork.js index ca70a14..4556b71 100644 --- a/public_html/eh/eh/eh/eh-eh/scripts/shork.js +++ b/public_html/eh/eh/eh/eh-eh/scripts/shork.js @@ -10,8 +10,8 @@ shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_ let mouse = {x: 0, y: 0}; onmousemove = function(e){ - mouse.x = e.clientX; - mouse.y = e.clientY; + mouse.x = e.pageX; + mouse.y = e.pageY; } let direction = 0; diff --git a/public_html/eh/eh/eh/eh-eh/styles/style.css b/public_html/eh/eh/eh/eh-eh/styles/style.css index 6482001..ccb79ef 100644 --- a/public_html/eh/eh/eh/eh-eh/styles/style.css +++ b/public_html/eh/eh/eh/eh-eh/styles/style.css @@ -57,7 +57,7 @@ main { } #shork { - position: fixed; + position: absolute; z-index: 1; left: -36px; top: -32px; diff --git a/scripts/shork.js b/scripts/shork.js index ca70a14..4556b71 100644 --- a/scripts/shork.js +++ b/scripts/shork.js @@ -10,8 +10,8 @@ shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_ let mouse = {x: 0, y: 0}; onmousemove = function(e){ - mouse.x = e.clientX; - mouse.y = e.clientY; + mouse.x = e.pageX; + mouse.y = e.pageY; } let direction = 0; diff --git a/styles/style.css b/styles/style.css index 6482001..ccb79ef 100644 --- a/styles/style.css +++ b/styles/style.css @@ -57,7 +57,7 @@ main { } #shork { - position: fixed; + position: absolute; z-index: 1; left: -36px; top: -32px;