removed unnecessary debug logs

This commit is contained in:
ari melody 2024-06-30 22:40:10 +01:00
parent 6dda77ec31
commit 176a8901b0
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -35,7 +35,6 @@
function gotoPost() { function gotoPost() {
if (focused) return; if (focused) return;
if (event && event.key && event.key !== "Enter") return; if (event && event.key && event.key !== "Enter") return;
console.log(`/post/${post.id}`);
goto(`/post/${post.id}`); goto(`/post/${post.id}`);
} }
@ -60,7 +59,7 @@
class={"post" + (focused ? " focused" : "")} class={"post" + (focused ? " focused" : "")}
aria-label={aria_label} aria-label={aria_label}
bind:this={el} bind:this={el}
on:mousedown={e => {mouse_pos.left = e.pageX; mouse_pos.top = e.pageY; console.log(mouse_pos)}} on:mousedown={e => {mouse_pos.left = e.pageX; mouse_pos.top = e.pageY}}
on:mouseup={e => {if (e.pageX == mouse_pos.left && e.pageY == mouse_pos.top) gotoPost()}} on:mouseup={e => {if (e.pageX == mouse_pos.left && e.pageY == mouse_pos.top) gotoPost()}}
on:keydown={gotoPost}> on:keydown={gotoPost}>
<PostHeader post={post} /> <PostHeader post={post} />