mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
feat(refresher): add pullFactor property to control speed (#16697)
closes #15425
This commit is contained in:

committed by
Brandy Carney

parent
cc8678ad58
commit
9030dcc111
8
core/src/components.d.ts
vendored
8
core/src/components.d.ts
vendored
@ -3519,6 +3519,10 @@ export namespace Components {
|
||||
*/
|
||||
'getProgress': () => Promise<number>;
|
||||
/**
|
||||
* How much to multiply the pull speed by. To slow the pull animation down, pass a number less than `1`. To speed up the pull, pass a number greater than `1`. The default value is `1` which is equal to the speed of the cursor. If a negative value is passed in, the factor will be `1` instead. For example: If the value passed is `1.2` and the content is dragged by `10` pixels, instead of `10` pixels the content will be pulled by `12` pixels (an increase of 20 percent). If the value passed is `0.8`, the dragged amount will be `8` pixels, less than the amount the cursor has moved.
|
||||
*/
|
||||
'pullFactor': number;
|
||||
/**
|
||||
* The maximum distance of the pull until the refresher will automatically go into the `refreshing` state. Defaults to the result of `pullMin + 60`.
|
||||
*/
|
||||
'pullMax': number;
|
||||
@ -3553,6 +3557,10 @@ export namespace Components {
|
||||
*/
|
||||
'onIonStart'?: (event: CustomEvent<void>) => void;
|
||||
/**
|
||||
* How much to multiply the pull speed by. To slow the pull animation down, pass a number less than `1`. To speed up the pull, pass a number greater than `1`. The default value is `1` which is equal to the speed of the cursor. If a negative value is passed in, the factor will be `1` instead. For example: If the value passed is `1.2` and the content is dragged by `10` pixels, instead of `10` pixels the content will be pulled by `12` pixels (an increase of 20 percent). If the value passed is `0.8`, the dragged amount will be `8` pixels, less than the amount the cursor has moved.
|
||||
*/
|
||||
'pullFactor'?: number;
|
||||
/**
|
||||
* The maximum distance of the pull until the refresher will automatically go into the `refreshing` state. Defaults to the result of `pullMin + 60`.
|
||||
*/
|
||||
'pullMax'?: number;
|
||||
|
Reference in New Issue
Block a user