-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse button modifiers for "v-on" should have more precise aliases #6877
Labels
Comments
I am currently working on it. What names should the modifiers really have?
Previous names |
st-sloth
added a commit
to st-sloth/vue
that referenced
this issue
Nov 16, 2017
13 tasks
If using |
The discussion kinda moved to the pull request, and Evan okayed the naming. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
Currently mouse button modifiers, introduced in #4866, are
left
,middle
,right
for$event.button
values0
,1
,2
correspondingly. But that is only correct for the "default" right-handed layout. In the left-handed mode (when the buttons are switched in the OS) the right button has0
value and the left button -2
. Besides, also some right-handed users may reverse or remap the mouse buttons. And working with code with these names for mouse buttons may lead to confusion and bugs among developers not familiar with the "default" right-handed mode being the target for these modifiers.What does the proposed API look like?
Keep
left
andright
as deprecated and addmain
andsecondary
as their aliases.The text was updated successfully, but these errors were encountered: