add original event to control events.

This commit is contained in:
Miroslav Šedivý
2022-02-12 14:25:25 +01:00
parent 1fdcac5826
commit b3eba8bd14
3 changed files with 5 additions and 5 deletions

View File

@ -4,8 +4,8 @@
class="neko-overlay"
tabindex="0"
:style="{ cursor }"
@click.stop.prevent="$emit('onAction', 'click')"
@contextmenu.stop.prevent="$emit('onAction', 'contextmenu')"
@click.stop.prevent="$emit('onAction', { action: 'click', target: $event })"
@contextmenu.stop.prevent="$emit('onAction', { action: 'contextmenu', target: $event })"
@wheel.stop.prevent="onWheel"
@mousemove.stop.prevent="onMouseMove"
@mousedown.stop.prevent="onMouseDown"