airbnb/rheostat

Snap points are not apparent while dragging

Aberta

#176 aberto em 6 de jul. de 2018

 (1 comentário) (4 reações) (0 responsável)JavaScript (185 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (1.689 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

The handle currently snaps to a valid snap point at the end of a drag. While the handle is dragged, the control calls onValuesUpdated with all of the values between the snap points.

This behavior is a little odd because it's a little ambiguous what a valid snap point is until you stop dragging the handle. Snap points can be defined arbitrarily and it's weird to allow the UI to get updated (through onValuesUpdated) with any value that is not a valid snap point.

It would be beneficial if the snap points were reflected while the user was dragging the handle and not just after letting go.

FYI @ljharb

Guia do colaborador