cdkDragStartDelay behavior has changed in version 8.1.0
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
It seems that the behavior of drag start delay has been changed between Angular CDK versions 8.0.0 and 8.1.0. I think this is a breaking change since it completely changes the way users interact with draggable items. I am not sure if the current behavior is really intended.
#### Reproduction
8.0.0: https://stackblitz.com/edit/angular-cdkdragstartdelay-80
8.1.0: https://stackblitz.com/edit/angular-cdkdragstartdelay-81
Steps to reproduce:
1. Click on any item.
2. Try to drag it as soon as possible.
#### Expected Behavior
In the previous version it did not matter if the mouse was clicked or immediately moved. The dragging started anyway after the specified delay.
#### Actual Behavior
In the current version the item is not being dragged when you move the mouse immediately after the initial click. It only works if you stay at the click position for the specified delay time and then move the mouse.
#### Environment
- Angular: 8.0.0+
- CDK/Material: 8.1.0+
- Browser(s): Google Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Fedora Linux 29
Guía de contribución
Línea de trabajo
Comienza comparando las dos reproducciones enlazadas de StackBlitz para Angular CDK 8.0.0 y 8.1.0, centrándote en cdkDragStartDelay y en la secuencia de hacer clic y mover inmediatamente después. Rastrea la implementación de arrastrar y soltar utilizada por las reproducciones y verifica el comportamiento con respecto a los resultados esperados y reales indicados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100