Skip to content
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

Default click and doubleClick to be left button clicks. #685

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

evanfarina
Copy link
Contributor

Prior to this change, neither click nor double-click helpers were passing the button and buttons mouseEvent options necessary to emit a left click. I recently ran into an issue as a library I'm using was specifically looking for 'left' clicks and it dawned on me that this should likely be the default behavior for these helpers.

Question for public / repo owners: It's possible, albeit rather unlikely, that this is a breaking change for some people. I'm open to feedback regarding the best way to handle this change so that it does not negatively impact users of this addon.

@rwjblue
Copy link
Member

rwjblue commented Jul 25, 2019

Thanks for working on this!

@rwjblue rwjblue changed the title Make click helpers emit a "left" click by default Update click and doubleClick helpers to populate event.buttons and event.button (defaulted to "left" click) Jul 29, 2019
@rwjblue rwjblue added the bug label Jul 29, 2019
@rwjblue
Copy link
Member

rwjblue commented Jul 29, 2019

FYI - Looks like CI failures are due to changes in canary builds of Ember. I'll try to confirm and we can file a separate issue to track fixing those failures.

@rwjblue rwjblue changed the title Update click and doubleClick helpers to populate event.buttons and event.button (defaulted to "left" click) Default click and doubleClick to be left button clicks. Apr 21, 2020
@rwjblue
Copy link
Member

rwjblue commented Apr 21, 2020

Rebased and fixed conflicts, should be ready to go now.

@rwjblue rwjblue merged commit 00618f4 into emberjs:master Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants