fix(input): event interfaces

This commit is contained in:
Manu Mtz.-Almeida
2018-08-11 19:00:01 +02:00
parent db0049ff73
commit 2e7d355edf
14 changed files with 39 additions and 266 deletions

View File

@ -30,11 +30,6 @@ export class PickerColumnCmp {
@Prop() col!: PickerColumn;
/**
* Emitted when the selected option has changed.
*/
@Event() ionChange!: EventEmitter<void>;
componentWillLoad() {
let pickerRotateFactor = 0;
let pickerScaleFactor = 0.81;
@ -80,7 +75,6 @@ export class PickerColumnCmp {
// set what y position we're at
cancelAnimationFrame(this.rafId);
this.update(y, duration, true);
this.ionChange.emit();
}
private update(y: number, duration: number, saveY: boolean) {
@ -187,8 +181,6 @@ export class PickerColumnCmp {
if (notLockedIn) {
// isn't locked in yet, keep decelerating until it is
this.rafId = requestAnimationFrame(() => this.decelerate());
} else {
this.ionChange.emit();
}
} else if (this.y % this.optHeight !== 0) {