Skip to content

Boards 0.4.6: Watch a stroke as it is drawn, and no more lost shapes

Boards 0.4.6 shows everyone on a board a stroke while it is being drawn, and stops a slow connection from deleting someone else’s work.

Strokes appear live

The shape a person is drawing now travels to the others as they draw it, not only when they let go. A stroke whose sender goes quiet for 4 seconds, for example by losing the connection or closing the tab, is taken down, so it does not stay as a ghost line on other screens.

Fixes

  • A shape list arriving late from a stalled connection could delete a shape a peer drew in the last 5 seconds. Such a shape is now put back, also when a second stale list follows, and its author is told.
  • Live cursor and stroke messages sent while the connection is down are dropped instead of replayed on reconnect.
  • Selecting text on a touch screen no longer selects the whole page, and a second finger pinches instead of drawing.

Upgrading

Boards 0.4.6 needs etcher 0.18 and fresco 0.13.1 or later.

Full release notes: Boards 0.4.6

0.4.6 · 1 October 2026

Added

  • Peers watch a stroke as it is drawn (#8). A new "drawing" / "drawn" pair on the ephemeral channel relays the in-progress shape (kind, geometry, style), numbered per stroke so a frame from a finished stroke is ignored. Requires etcher 0.18 (onDrawing / applyDrawing).

Fixed

  • A stale list no longer deletes somebody’s work (#8). A shape a peer drew in the last 5 s is put back when a list omits it, instead of being read as a delete. Follow-ups to the PR: the restore protection is no longer ended by the first stale list (a second one queued behind the same stalled socket deleted the shape), and the sender is now told about restored shapes even when the corrected list diffs to nothing — previously their canvas showed the shape deleted while the board still held it.
  • Channel pushes are dropped while the socket is down rather than buffered and replayed on reconnect (#8).
  • A peer’s in-progress stroke is taken down after 4 s of silence, so a sender who loses their line or closes the tab mid-stroke no longer leaves a ghost line on everyone else’s screen.
  • Text selection on touch screens no longer takes the page with it (#8), and fresco is held at 0.13.1+ so a second finger pinches instead of feeding the stroke.
  • version/0 had drifted behind @version (0.4.4 vs 0.4.5).

Boards 0.4.6. Install or update: {:phoenix_kit_boards, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.