fix: svg unmoveable bug

This commit is contained in:
IchliebedichZhu 2024-03-29 18:40:43 +00:00
parent 4f2a307f4c
commit 8722d53692

View File

@ -123,7 +123,7 @@ onMounted(async () => {
await nextTick()
await loadSvg()
updateRecord()
document.getElementById(props.params.uuid)?.addEventListener('mousedown', touchstart, false)
// document.getElementById(props.params.uuid)?.addEventListener('mousedown', touchstart, false)
document.addEventListener('mouseup', touchend, false)
if (!widgetRef.value) return
props.params.transform && (widgetRef.value.style.transform = props.params.transform)