forked from noxious/client
Refactored screens & login forms, fixed pw reset modal, WIP new pw form
This commit is contained in:
@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user