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

Offen
#31,633 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
58/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
angular, typescript
Bereich
frontend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
52.8k
Forks
13.3k
Ø Merge
3 T. 1 Std.
Gemergte PRs (30 T.)
86

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ionic-team/ionic-framework

Alle Issues in ionic-team/ionic-framework

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.