notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 24257fb5220e960e1c7b843c3cbfb677efef6c77
parent 5317b9b79ae04e557424a58620ed52794c841796
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 24 Feb 2026 10:26:04 -0800

nostrverse: fix outline thickness and drag-start selection highlight

Reduce outline width from 0.03 to 0.012 for a subtler selection
indicator. Fix drag-start not updating the outline by setting
selection directly on the renderer instead of through the action
system, which gets overwritten by MoveObject on the same frame.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Diffstat:
Mcrates/notedeck_nostrverse/src/room_view.rs | 6+++++-
Mcrates/renderbud/src/outline.wgsl | 2+-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck_nostrverse/src/room_view.rs b/crates/notedeck_nostrverse/src/room_view.rs @@ -182,7 +182,11 @@ pub fn show_room_view( plane_y, mode, }); - action = Some(NostrverseAction::SelectObject(Some(obj.id.clone()))); + // Set selection directly — can't use the action + // system because dragged() fires on the same frame + // and would overwrite with MoveObject. + r.set_selected(Some(scene_id)); + state.selected_object = Some(obj.id.clone()); } } } diff --git a/crates/renderbud/src/outline.wgsl b/crates/renderbud/src/outline.wgsl @@ -44,7 +44,7 @@ struct VSIn { @vertex fn vs_main(v: VSIn) -> @builtin(position) vec4<f32> { - let outline_width = 0.03; + let outline_width = 0.012; let inflated = v.pos + v.normal * outline_width; let world4 = object.model * vec4<f32>(inflated, 1.0); return globals.view_proj * world4;