bug: ion-datetime time picker overscroll does not revert to value, stays stuck

Ouverte
#31,633 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
58/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
angular, typescript
Domaine
frontend

Piste de recherche

Inspect the ion-datetime time-picker implementation and its existing tests, then reproduce the overscroll behavior in Safari using the linked datetime documentation page. Verify that scrolling past either extreme re-centers the picker and does not cause the page to scroll. Add or update a regression test covering the Safari overscroll case.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

package: core type: bug
Prerequisites
Ionic Framework Version

v9.x

Current Behavior

https://ionicframework.com/docs/api/datetime#time-selection

It's easy on macos safari to scroll just past the extreme, so the time picker is then stuck n this weird overscroll state. You do it by scrolling all the way, then doing a small scroll adjustment so the wheel stays off-center.

Not just that, but a worse side effect occurs. If you try and scroll further again in that direction from the stuck state, the entire page scrolls instead.

This happens at both top and bottom extremes of the scroll wheel.

This problem is only on safari, chrome it always corrects itself automatically.

Image
Expected Behavior

It should behave like it does in Chrome. Scroller should always auto-reset to a value and it shoulnd't be possible for it to get stuck.

Steps to Reproduce

already mentioned

Code Reproduction URL

https://ionicframework.com/docs/api/datetime#time-selection

Ionic Info

"@ionic/angular": "^9.0.6",

Additional Information

No response

Langage dominant
TypeScript
Étoiles
52.8k
Forks
13.3k
Merge moyen
3 j 1 h
PR mergées (30 j)
86

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de ionic-team/ionic-framework

Toutes les issues de ionic-team/ionic-framework

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.