Made a warning bomb and also is super laggy.

This commit is contained in:
yuanhau 2025-05-12 09:28:46 +08:00
parent 542a22f168
commit 3c3b65c18e
2 changed files with 22 additions and 11 deletions

View file

@ -13,8 +13,8 @@ const emit = defineEmits(['close'])
const isDragging = ref(false)
const position = ref({
x: props.initialX || 100,
y: props.initialY || 100
x: props.initialX || Math.floor(window.innerWidth / 2) - Math.random() * 200,
y: props.initialY || Math.floor(window.innerHeight / 2) - Math.random() * 10
})
const offset = ref({ x: 0, y: 0 })