Stream mini preview: movable with snap to corners, and a button to expand it #934

Closed
opened 2026-11-19 06:39:26 +00:00 by charles · 2 comments
Owner

Forum report from Charles (2026-11-19): "We cannot move the small preview? window? of a stream from bottom right of the screen. It can block the sidebar. We should be able to move it and it gets snap to corners. Also there should be a button (other than back) to make it fullscreen or whatever."

Wanted:

  • The small stream preview shown while browsing elsewhere can be dragged, and on release snaps to the nearest corner of the window; the chosen corner is remembered.
  • It never covers the member sidebar in a way that cannot be undone (moving it solves this).
  • A visible button on the preview to go to the full stream view / fullscreen, besides the existing back control.

Parity: compare with the original's picture-in-picture (fluxer_app/src/features/voice/state/ScreenSharePiPController.ts and its component in the fork checkout) for drag, snap, corner memory and the controls shown on hover.

Forum report from Charles (2026-11-19): "We cannot move the small preview? window? of a stream from bottom right of the screen. It can block the sidebar. We should be able to move it and it gets snap to corners. Also there should be a button (other than back) to make it fullscreen or whatever." **Wanted:** - The small stream preview shown while browsing elsewhere can be dragged, and on release snaps to the nearest corner of the window; the chosen corner is remembered. - It never covers the member sidebar in a way that cannot be undone (moving it solves this). - A visible button on the preview to go to the full stream view / fullscreen, besides the existing back control. **Parity:** compare with the original's picture-in-picture (`fluxer_app/src/features/voice/state/ScreenSharePiPController.ts` and its component in the fork checkout) for drag, snap, corner memory and the controls shown on hover.
Author
Owner

Findings before building (agent working on branch feat-934-935-stream-view).

What the original does (fluxer_app/src/features/voice/components/pip_overlay/*, features/ui/state/PiP.ts, features/ui/floating_pane):

  • The PiP card floats over the whole window: 20 px from every edge (EDGE_PADDING), plus the native title bar's height at the top (topInset). It has no other insets: nothing keeps it off the member list, which is why it can be moved.
  • Drag: a left press anywhere on the card except a button; it only becomes a drag after 3 px (PIP_DRAG_THRESHOLD_SQ = 9), so a plain click stays a click (the card body has no click action; a double-click returns to the call). On release it snaps to a corner: the quadrant of the card's position within its drag bounds (snapPointToCorner, midpoints of min/max x and y), with a fling lookahead from the pointer velocity.
  • The corner is stored under pip_corner (one of top-left, top-right, bottom-right, bottom-left; anything else is ignored), default bottom-right. It also has resize handles and a stored width.
  • Hover controls: "Back to call" (arrow + channel name) top left; streamer name and viewer count at the bottom. There is no expand/fullscreen button on the screen-share card.

What native does today (crates/fluxer-ui/src/screens/main/call/pip.rs): the same card, fixed 20 px from the window's bottom-right corner over the main screen; no drag, no stored corner.

What I will build:

  • The card can be dragged (3 px threshold, buttons excluded) and snaps on release to the corner of the quadrant it is in, over the whole window with the original's 20 px edge (no title bar inset: the native window uses system decorations). No fling lookahead (a positional snap only).
  • The corner is stored with the voice settings as pip_corner (same values as the original; unknown values fall back to bottom-right).
  • An expand button at the top right of the hover header, CornersOut with the original's "Enter fullscreen" wording (the original has no such button on this card; this reuses the wording and icon of its call corner controls). It opens the call with this stream focused, in fullscreen. "Back to call" stays.
  • Resizing stays out of scope.
Findings before building (agent working on branch `feat-934-935-stream-view`). **What the original does** (`fluxer_app/src/features/voice/components/pip_overlay/*`, `features/ui/state/PiP.ts`, `features/ui/floating_pane`): - The PiP card floats over the whole window: 20 px from every edge (`EDGE_PADDING`), plus the native title bar's height at the top (`topInset`). It has no other insets: nothing keeps it off the member list, which is why it can be moved. - Drag: a left press anywhere on the card except a button; it only becomes a drag after 3 px (`PIP_DRAG_THRESHOLD_SQ = 9`), so a plain click stays a click (the card body has no click action; a double-click returns to the call). On release it snaps to a corner: the quadrant of the card's position within its drag bounds (`snapPointToCorner`, midpoints of min/max x and y), with a fling lookahead from the pointer velocity. - The corner is stored under `pip_corner` (one of `top-left`, `top-right`, `bottom-right`, `bottom-left`; anything else is ignored), default `bottom-right`. It also has resize handles and a stored width. - Hover controls: "Back to call" (arrow + channel name) top left; streamer name and viewer count at the bottom. There is **no** expand/fullscreen button on the screen-share card. **What native does today** (`crates/fluxer-ui/src/screens/main/call/pip.rs`): the same card, fixed 20 px from the window's bottom-right corner over the main screen; no drag, no stored corner. **What I will build:** - The card can be dragged (3 px threshold, buttons excluded) and snaps on release to the corner of the quadrant it is in, over the whole window with the original's 20 px edge (no title bar inset: the native window uses system decorations). No fling lookahead (a positional snap only). - The corner is stored with the voice settings as `pip_corner` (same values as the original; unknown values fall back to bottom-right). - An expand button at the top right of the hover header, `CornersOut` with the original's "Enter fullscreen" wording (the original has no such button on this card; this reuses the wording and icon of its call corner controls). It opens the call with this stream focused, in fullscreen. "Back to call" stays. - Resizing stays out of scope.
Author
Owner

Fixed in nightly 2026.1119.406.

Fixed in nightly 2026.1119.406.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#934
No description provided.