airbnb/rheostat

Snap points are not apparent while dragging

Open

#176 建立於 2018年7月6日

在 GitHub 查看
 (1 留言) (4 反應) (0 負責人)JavaScript (215 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (1,688 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南