Skip to content

Commit c12bb9a

Browse files
sbryngelsonclaude
andcommitted
Fix interactive viz freezing: switch sliders to updatemode=mouseup
Drag mode fires a callback on every pixel of movement, overwhelming the server when data loading + figure build takes >100ms. Mouseup fires only on release, eliminating callback queue buildup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d2a5d20 commit c12bb9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toolchain/mfc/viz/interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _lbl(text):
8686
def _slider(sid, lo, hi, step, val, marks=None):
8787
return dcc.Slider(
8888
id=sid, min=lo, max=hi, step=step, value=val,
89-
marks=marks or {}, updatemode='drag',
89+
marks=marks or {}, updatemode='mouseup',
9090
tooltip={'placement': 'bottom', 'always_visible': True},
9191
)
9292

0 commit comments

Comments
 (0)