1
0
forked from noxious/client

Refactored screens & login forms, fixed pw reset modal, WIP new pw form

This commit is contained in:
2024-11-03 00:47:02 +01:00
parent 584262a59b
commit bbcb84ed03
13 changed files with 691 additions and 553 deletions

View File

@ -168,8 +168,8 @@ function stopDrag() {
}
function adjustPosition() {
x.value = Math.max(0, Math.min(x.value, window.innerWidth - width.value))
y.value = Math.max(0, Math.min(y.value, window.innerHeight - height.value))
x.value = Math.min(x.value, window.innerWidth - width.value)
y.value = Math.min(y.value, window.innerHeight - height.value)
}
function initializePosition() {
@ -236,6 +236,7 @@ onMounted(() => {
})
onUnmounted(() => {
removeEventListener('keydown', keyPress)
removeEventListener('mousemove', drag)
removeEventListener('mouseup', stopDrag)
})