add overlay events.

This commit is contained in:
Miroslav Šedivý
2022-01-30 17:09:35 +01:00
parent bd5f02223a
commit de62a349ed
3 changed files with 7 additions and 2 deletions

View File

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