Skip to content

Make animation of ion-refresher slower #15425

Closed

Description

@duyetnk

Feature Request

Ionic Info

Ionic:

   ionic (Ionic CLI)  : 4.1.1 (C:\Users\naugh\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0, browser 5.0.1
   Cordova Plugins       : cordova-plugin-ionic-webview 1.2.1, (and 16 other plugins)

System:

   NodeJS : v8.10.0 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

Describe the Feature Request
I want the animation of ion-refresher slower when user pull down,

Describe Preferred Solution
i want it slower than speed of user's finger,

Describe Alternatives
Can you guy add new input property such as "speed" in ion-refresher so i can specify the speed i want. (if possible). Example:

<ion-refresher speed="80" pullMax="100" pullMin="60" (ionRefresh)="loadHomePage($event)">
</ion-refresher>

Related Code
Here is the example I found in ionic v1, it is perfect what I want
https://codepen.io/anon/pen/ZYYVgX?editors=101

Activity

  1. mhartington commented on Sep 6, 2018

    @mhartington
    Contributor

    What do you mean by speed? There's

      /**
       * Time it takes the refresher to to snap back to the `refreshing` state. Defaults to `280ms`.
       */
      @Prop() snapbackDuration = '280ms';
    

    Can you test this to see if this is what you need?

  2. added
    needs: reply
    and removed on Sep 6, 2018
  3. duyetnk commented on Sep 7, 2018

    @duyetnk
    Author

    No, i mean speed of animation when content page pull down with user's finger (or cursor).
    Not snapbackDuration (it's pull up)

    i want it slower(the animation when pull down), by now it equal to the speed of user's finger (or cursor). => It does not look smooth in android.

  4. added and removed
    needs: reply
    on Sep 7, 2018
  5. added
    type: feature request
    and removed on Dec 4, 2018
  6. added a commit that references this issue on May 7, 2019
    9030dcc
  7. brandyscarney commented on May 7, 2019

    @brandyscarney
    Member

    Thanks for the issue! This has been added by the following PR: #16697

    It will be in the 4.4.0 release and used like the following:

    <ion-refresher slot="fixed" pull-factor="0.5" pull-min="100" pull-max="200">
      <ion-refresher-content></ion-refresher-content>
    </ion-refresher>
    
  8. added 4 commits that reference this issue on May 8, 2019
    5eb942f
    71d5400
    2c24df2
    9c65d5d
  9. added a commit that references this issue on May 22, 2019
    3da7254
  10. ionitron-bot commented on Jun 6, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  11. locked and limited conversation to collaborators on Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions