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

Abierto
#31,633 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
angular, typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
52.8k
Forks
13.3k
Merge medio
3 d 1 h
PR fusionados (30 d)
86

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ionic-team/ionic-framework

Todos los issues de ionic-team/ionic-framework

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.