mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
docs(itemSliding): cleanup private methods
This commit is contained in:
@ -196,6 +196,9 @@ export class ItemSliding {
|
|||||||
private _optsDirty: boolean = true;
|
private _optsDirty: boolean = true;
|
||||||
private _state: SlidingState = SlidingState.Disabled;
|
private _state: SlidingState = SlidingState.Disabled;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@ContentChild(Item) private item: Item;
|
@ContentChild(Item) private item: Item;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -332,6 +335,9 @@ export class ItemSliding {
|
|||||||
return restingPoint;
|
return restingPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
private fireSwipeEvent() {
|
private fireSwipeEvent() {
|
||||||
if (this._state & SlidingState.SwipeRight) {
|
if (this._state & SlidingState.SwipeRight) {
|
||||||
this._rightOptions.ionSwipe.emit(this);
|
this._rightOptions.ionSwipe.emit(this);
|
||||||
@ -340,6 +346,9 @@ export class ItemSliding {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
private calculateOptsWidth() {
|
private calculateOptsWidth() {
|
||||||
nativeRaf(() => {
|
nativeRaf(() => {
|
||||||
if (!this._optsDirty) {
|
if (!this._optsDirty) {
|
||||||
@ -481,4 +490,3 @@ function shouldClose(isCloseDirection: boolean, isMovingFast: boolean, isOnClose
|
|||||||
let shouldClose = (!isMovingFast && isOnCloseZone) || (isCloseDirection && isMovingFast);
|
let shouldClose = (!isMovingFast && isOnCloseZone) || (isCloseDirection && isMovingFast);
|
||||||
return shouldClose;
|
return shouldClose;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user