Skip to content

Commit 1b31715

Browse files
committed
fix(ngc): _onDragStart/End are called with one param
Fixes #1112
1 parent 02c7593 commit 1b31715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/slide-toggle/slide-toggle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class MdSlideToggle implements AfterContentInit, ControlValueAccessor {
213213

214214

215215
/** TODO: internal */
216-
_onDragStart() {
216+
_onDragStart(event: Event) {
217217
this._slideRenderer.startThumbDrag(this.checked);
218218
}
219219

@@ -223,7 +223,7 @@ export class MdSlideToggle implements AfterContentInit, ControlValueAccessor {
223223
}
224224

225225
/** TODO: internal */
226-
_onDragEnd() {
226+
_onDragEnd(event: Event) {
227227
// Notice that we have to stop outside of the current event handler,
228228
// because otherwise the click event will be fired and will reset the new checked variable.
229229
setTimeout(() => {

0 commit comments

Comments
 (0)