angular / angular/components

Drag and drop, ability to hold element while drag

Abierto
#15,795 2 comentarios 0 reacciones 0 asignados Ver en GitHub
area: cdk/drag-drop feature P5
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

#### Please describe the feature you would like to request.
Ability to pass boolean value for hold element while moving. it is something like `dragStartThreshold`, but during dragging. (it will block to change transform3d values till we change hold value e.g `cdkDragHold = false`)

#### What is the use-case or motivation for this proposal?
for example, if a user drags an element past near the center of the page, we need to magnetize the element with center for 20px area, then we pass new input e.g. `cdkDragHold = true` and by that we want to hold dragging element till we change this value. I think this might be useful for another many cases, bcs it's quite hard for user to moving element exactly pixel in pixel in some cases, but we can help to do this programmatically.
#### Is there anything else we should know?
It a bit similar to `dragStartThreshold` from `DragRefConfig`.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza leyendo el comportamiento existente de DragRefConfig y dragStartThreshold, y luego rastrea cómo cdkDrag actualiza los valores de transform3d durante el arrastre. Define cómo interactuaría una entrada de удержar con el área central magnetizada de 20px solicitada, y añade cobertura que muestre que el movimiento se pausa y se reanuda cuando cambia el valor.

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
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.