Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Keep the tile size slider still while it's dragged beside the detail panel - #1

Open
lain105 wants to merge 1 commit into
Azazel-Labs:mainfrom
lain105:fix-slider-jump
Open

lain105 wants to merge 1 commit into
Azazel-Labs:mainfrom
lain105:fix-slider-jump

Conversation

@lain105

@lain105 lain105 commented Dec 2, 2026

Copy link
Copy Markdown

Requested by Rachel · project thread

The bug

With the detail panel open, dragging the tile size slider makes the slider jump out from under the pointer, and the value bounces back and forth.

The detail panel takes whatever width the grid's columns leave. Each slider step changes the column width, so it also changes the panel's width. That changes the toolbar's width, and with it where the slider sits on screen. The pointer ends up over a different point on the track, so the value changes again.

The fix

The slider calls a new holdPanel() from usePanelFit on pointer down. That holds the panel at its current width until the pointer is let go anywhere (or the drag is cancelled). While it's held, fit keeps that width the same way it already does mid-way through a drag of the panel's edge. On release the panel settles to fit the new columns, as it does after an edge drag.

Two files: web/src/panelFit.ts and the slider's @pointerdown in web/src/App.vue. Following AGENTS.md, there's no NEWS entry because this is a fix.

Checked

  • Reproduced in the portal with the detail panel open. Without the fix, the slider's x position moved 779 → 702 → 586 px during one drag. With the fix it stayed at 779 px, and the grid still resized live.
  • npm run build (vue-tsc and vite) passes on top of current main (2.1.1).

🤖 Generated with Claude Code

…panel

With the detail panel open, the panel takes whatever width the grid's columns
leave, so each step of the slider changed the panel's width, the toolbar's,
and so where the slider itself was: it jumped out from under the pointer and
the value bounced. The panel's width is now held from pointer down until the
slider is let go, then settles to fit.

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant