fix(core): remove duplicate event binding
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -13,12 +13,6 @@ const {
|
||||
...props
|
||||
} = defineProps<HandleProps>()
|
||||
|
||||
const emits = defineEmits<{
|
||||
(event: 'mousedown', e: MouseEvent): void
|
||||
(event: 'touchstart', e: TouchEvent): void
|
||||
(event: 'click', e: MouseEvent): void
|
||||
}>()
|
||||
|
||||
const type = toRef(props, 'type', 'source')
|
||||
|
||||
const {
|
||||
@@ -121,12 +115,6 @@ function onPointerDown(event: MouseEvent | TouchEvent) {
|
||||
if (isConnectable.value && isConnectableStart.value && ((isMouseTriggered && event.button === 0) || !isMouseTriggered)) {
|
||||
handlePointerDown(event)
|
||||
}
|
||||
|
||||
if (isMouseTriggered) {
|
||||
emits('mousedown', event)
|
||||
} else {
|
||||
emits('touchstart', event)
|
||||
}
|
||||
}
|
||||
|
||||
function onClick(event: MouseEvent) {
|
||||
|
||||
Reference in New Issue
Block a user