You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I'd like to thank everyone who has contributed to this absolutely wonderful library.
I was reading the docs on key modifiers (for example, @keyup.enter) and was wondering if it would be worth having the same kind of thing for mouse buttons. This would make handling much simpler since the same events that are available for the left button by default would be for the other ones as well without the need for repetitive checking in the JS code.
For instance:
<button @click.left="hello" @click.right="bye">Say hello or bye</button>
<div @mousedown.middle="drag">I'm draggable!</div>
The only possible "downside", I guess, is that @click.right would become a synonym for @contextmenu, but it doesn't sound that bad.
Is this viable?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
edjroot
changed the title
Mouse event listener modifiers
[Feature] Mouse event listener modifiers
Jun 10, 2016
Yes, there is some good potential with the @event interface. Like the suggestions made and also had a question/suggestion along the same lines for an @stream interface here: vuejs/vue-rx#5
Uh oh!
There was an error while loading. Please reload this page.
First of all, I'd like to thank everyone who has contributed to this absolutely wonderful library.
I was reading the docs on key modifiers (for example,
@keyup.enter
) and was wondering if it would be worth having the same kind of thing for mouse buttons. This would make handling much simpler since the same events that are available for the left button by default would be for the other ones as well without the need for repetitive checking in the JS code.For instance:
The only possible "downside", I guess, is that
@click.right
would become a synonym for@contextmenu
, but it doesn't sound that bad.Is this viable?
Thanks in advance!
The text was updated successfully, but these errors were encountered: