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

fix(slide-toggle): emit change event after drag end #1405

Merged
merged 2 commits into from
Oct 6, 2016

Conversation

devversion
Copy link
Member

  • Emits a change event after the drag completed.

Fixes #1390.

FYI: Rebased on top of #1268 (should be merged before)

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 2, 2016
@jelbourn
Copy link
Member

jelbourn commented Oct 5, 2016

@devversion can you rebase this now (to make review easier)?

@devversion
Copy link
Member Author

@jelbourn I just rebased on the #1268 changes again, but I assume you meant to rebase on master

(This would be a mess, because the testing structures are not available then)

1e16eb2 actually is the only change (last commit in the PR)

@jelbourn
Copy link
Member

jelbourn commented Oct 5, 2016

Whoops, I thought I had already merged #1268. Now I really merged it.

* Emits a change event after the drag completed.

Fixes angular#1390.
@devversion
Copy link
Member Author

Just rebased now on top of master.

@jelbourn
Copy link
Member

jelbourn commented Oct 6, 2016

LGTM aside for that same comment

expect(slideThumbContainer.classList).toContain('md-dragging');

gestureConfig.emitEventForElement('slide', slideThumbContainer, {
deltaX: 200 // Use a random number which will be clamped.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment on the comment as the other PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I just rebased it, and didn't look at it again. Just made the change :)

@jelbourn jelbourn merged commit 0b5b6f2 into angular:master Oct 6, 2016
@devversion devversion deleted the fix/slide-toggle-drag-event branch October 6, 2016 18:10
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-slide-toggle does not emit event when thumb is dragged
3 participants