overlay onAction move to control.

This commit is contained in:
Miroslav Šedivý
2022-07-23 01:42:31 +02:00
parent 3180102006
commit 6f18bde058
2 changed files with 2 additions and 3 deletions

View File

@ -5,8 +5,8 @@
ref="textarea"
class="neko-overlay"
:style="{ cursor }"
@click.stop.prevent="$emit('onAction', { action: 'click', target: $event })"
@contextmenu.stop.prevent="$emit('onAction', { action: 'contextmenu', target: $event })"
@click.stop.prevent="control.emit('overlay.click', $event)"
@contextmenu.stop.prevent="control.emit('overlay.contextmenu', $event)"
@input.stop.prevent="onInput"
@wheel.stop.prevent="onWheel"
@mousemove.stop.prevent="onMouseMove"