3 ms·
This is cool. It seems hard to add just dots to signature? It may be some kind of delay waiting for a touch action.
by whycome 8mo ago
This is cool. It seems hard to add just dots to signature? It may be some kind of delay waiting for a touch action.
- elliotbnvl 8mo agoThis was surprisingly tricky, but fixed! The issue was that short tap strokes were being fed through the stroke-rendering library (perfect-freehand), which applies start/end taper over a configurable length. When the total stroke distance is shorter than the combined taper length, the stroke tapers to nothing — so dots just disappeared. The fix detects tap-like strokes and renders them directly as small ellipses, bypassing the stroke pipeline.
- whycome 8mo agoAmazing! And thanks for the insight into what caused it. Thats useful even if just to understand how this specific library works.