mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(sliding-gesture): missing return value
This commit is contained in:
@ -14,7 +14,7 @@ export class SlideEdgeGesture extends SlideGesture {
|
|||||||
|
|
||||||
constructor(plt: Platform, element: HTMLElement, opts: any = {}) {
|
constructor(plt: Platform, element: HTMLElement, opts: any = {}) {
|
||||||
defaults(opts, {
|
defaults(opts, {
|
||||||
edge: 'left',
|
edge: 'start',
|
||||||
maxEdgeStart: 50
|
maxEdgeStart: 50
|
||||||
});
|
});
|
||||||
super(plt, element, opts);
|
super(plt, element, opts);
|
||||||
@ -29,7 +29,7 @@ export class SlideEdgeGesture extends SlideGesture {
|
|||||||
switch (value) {
|
switch (value) {
|
||||||
case 'start': return isRTL ? 'right' : 'left';
|
case 'start': return isRTL ? 'right' : 'left';
|
||||||
case 'end': return isRTL ? 'left' : 'right';
|
case 'end': return isRTL ? 'left' : 'right';
|
||||||
default: value;
|
default: return value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user