mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-11 20:45:33 +00:00
This commit is contained in:
parent
7875a57af0
commit
36df9897cc
1 changed files with 6 additions and 4 deletions
|
|
@ -732,10 +732,12 @@
|
|||
endFF()
|
||||
}, { signal: ctrl.signal })
|
||||
|
||||
document.addEventListener('pointercancel', event => {
|
||||
document.releasePointerCapture(event.pointerId)
|
||||
endFF()
|
||||
}, { signal: ctrl.signal })
|
||||
if (type === 'pointer') {
|
||||
document.addEventListener('pointercancel', event => {
|
||||
if ('pointerId' in event) document.releasePointerCapture(event.pointerId)
|
||||
endFF()
|
||||
}, { signal: ctrl.signal })
|
||||
}
|
||||
|
||||
return { destroy: () => ctrl.abort() }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue