Skip to content

bug: ion-datetime scroll inertia/momentum to high #18679

Closed

Description

@madmacc

Bug Report

Ionic version:
[x] 4.1

Current behavior:
On a physical device (iOS) the picker does not stop as expected at slow scroll speeds, it seems to have to much inertia. It is subtle but is different to the native iOS time picker e.g. if you try to set an the alarm on an iOS device. It scrolls a little to long at low speeds and makes it more error prone to pick the correct time.

Expected behavior:
Behave the same as the time picker on iOS used when setting the alarm. e.g. less inertia and stops on the expected number easier.

Steps to reproduce:
Add an ion-datetime to an ionic project page similar to below to pick time:

<ion-datetime 
              [(ngModel)]="start"
              displayFormat="HH:mm" 
              minuteValues="0,15,30,45" 
              picker-format="HH:mm"
              (ionChange)="onChangeStartTime($event)"
</ion-datetime>

Other information:

Ionic info:

Ionic:

   Ionic CLI                     : 5.0.0 (C:\Users\fullo\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.4.2
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Capacitor:

   Capacitor CLI   : 1.0.0
   @capacitor/core : 1.0.0

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10

Activity

  1. Maikell84 commented on Jul 11, 2019

    @Maikell84

    I can confirm this. In the web-browser it is even worse.
    The timepicker is basically not usable, because it always jumps 1-3 digits further than you would expect.

  2. dvrakas commented on Jul 30, 2019

    @dvrakas

    Is there a solution to this issue. I am encountering the same issue. Its a bit to fast and skips very easily.

  3. madmacc commented on Jul 30, 2019

    @madmacc
    Author

    I couldn't find a solution. I just had to go with it for now. It is actually an issue with ion-picker I think as it uses that.
    https://ionicframework.com/docs/api/picker

  4. RafaelKr commented on Jul 30, 2019

    @RafaelKr

    I just upgraded to @ionic/[email protected] and it feels better to me now.

  5. dvrakas commented on Aug 1, 2019

    @dvrakas

    upgrading to @ionic/[email protected] did not seem to do fix the issue for me.

  6. RafaelKr commented on Aug 1, 2019

    @RafaelKr

    /cc @paulstelzer @liamdebeasi
    Hey, this issue seems to be overlooked. I think this belongs into your ion-datetime bug collection #16630
    I just checked again and sometimes still behaves as desribed in the initial text.

  7. liamdebeasi commented on Aug 7, 2019

    @liamdebeasi
    Contributor

    Thanks! I have added this issue to the tracker.

    I am going to close this issue in favor of the bug tracker here: #16630.

  8. ionitron-bot commented on Sep 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.

  9. locked and limited conversation to collaborators on Sep 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

    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