mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix dragging state not reset
This commit is contained in:
parent
147693b7d7
commit
81150a5c10
@ -70,14 +70,14 @@ const startDragging = (e: PointerEvent) => {
|
||||
document.documentElement.classList.remove('custom-width-dragging')
|
||||
document.documentElement.style.cursor = ''
|
||||
document.documentElement.removeEventListener('pointermove', handlePointerMove)
|
||||
isDragging.value = false
|
||||
startPoint.value = 0
|
||||
if (!movement.value) {
|
||||
return
|
||||
}
|
||||
movement.value = 0
|
||||
const newWidth = previewWidth.value
|
||||
options.customWidth = newWidth
|
||||
isDragging.value = false
|
||||
startPoint.value = 0
|
||||
movement.value = 0
|
||||
document.documentElement.style.setProperty('--live-chat-panel-width', `${newWidth}px`)
|
||||
},
|
||||
{ once: true },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user