Liveries panel: Ctrl + wheel resizes the sticker again #499

Manually merged
github merged 1 commit from github-bot/gh-499 into gh-pr/499/base 2026-11-27 19:42:08 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 19:28 UTC · original
holdmysocks:claude/livery-ctrl-wheel → master · +15 −1 · 1 files · 1 commits · merged 2026-11-27 19:39 UTC

What

Ctrl + wheel on the model resizes the chosen sticker again, and Ctrl + Shift + wheel changes its height. Found in a pass through the Liveries panel with a real mouse and keyboard: both gestures did nothing, while Shift + wheel (width) and Alt + wheel (rotation) worked.

Cause: with Ctrl held the UI library takes the wheel as a zoom gesture and reports no scroll, so the panel's "scroll with Ctrl" never happened. The scroll is now worked back from the zoom factor (zoom = exp(scroll / 200)). The gesture runs on for a few frames after the wheel stops, so it counts as Ctrl also when the key is already up; a pinch on a touchpad arrives the same way and resizes too.

Checked

By real mouse and keyboard input on the box truck (Windows), reading the numbers in the panel:

  • Ctrl + wheel, three notches up: width 3.627 → 4.610 m and height 0.907 → 1.153 m (the same factor). Before the change: no change.
  • Ctrl + Shift + wheel, three notches down: height 1.153 → 0.907 m, width unchanged. Before the change: no change.
  • Shift + wheel still changes the width only, Alt + wheel the rotation, and the plain wheel still zooms the camera.
  • cargo test -p sixng-gui: 60 pass. cargo build --release -p sixng-gui without warnings.

The same pass found the rest of the panel working by mouse: the sticker picker, clicking wall panels, dragging the sticker on the model, the sliders, the 90° / mirror / colour mask controls, duplicate, reorder, hide, delete, Clear, Undo and Redo by button and by Ctrl+Z / Ctrl+Y, and the four file dialogs (PNG file, save a copy, open a livery file, export as GLB).

Not decoded / not done

  • A quick tap of Ctrl (key up right after the wheel) and a touchpad pinch were not tried; the wheel was turned with the key held half a second longer.
  • Not tried on macOS or Linux.
  • Seen in the pass and left as they are: the sticker picker opens on top of the Liveries panel when the view is narrow; two of the first twelve thumbnails in the picker show "could not be read"; putting on a game livery that places no stickers removes the stickers that were there (Undo brings them back).
**@⁠holdmysocks** on GitHub · 2026-11-27 19:28 UTC · [original](https://github.com/holdmysocks/SixNG/pull/499) `holdmysocks:claude/livery-ctrl-wheel` → `master` · +15 −1 · 1 files · 1 commits · merged 2026-11-27 19:39 UTC ## What Ctrl + wheel on the model resizes the chosen sticker again, and Ctrl + Shift + wheel changes its height. Found in a pass through the Liveries panel with a real mouse and keyboard: both gestures did nothing, while Shift + wheel (width) and Alt + wheel (rotation) worked. Cause: with Ctrl held the UI library takes the wheel as a zoom gesture and reports no scroll, so the panel's "scroll with Ctrl" never happened. The scroll is now worked back from the zoom factor (zoom = exp(scroll / 200)). The gesture runs on for a few frames after the wheel stops, so it counts as Ctrl also when the key is already up; a pinch on a touchpad arrives the same way and resizes too. ## Checked By real mouse and keyboard input on the box truck (Windows), reading the numbers in the panel: - Ctrl + wheel, three notches up: width 3.627 → 4.610 m and height 0.907 → 1.153 m (the same factor). Before the change: no change. - Ctrl + Shift + wheel, three notches down: height 1.153 → 0.907 m, width unchanged. Before the change: no change. - Shift + wheel still changes the width only, Alt + wheel the rotation, and the plain wheel still zooms the camera. - `cargo test -p sixng-gui`: 60 pass. `cargo build --release -p sixng-gui` without warnings. The same pass found the rest of the panel working by mouse: the sticker picker, clicking wall panels, dragging the sticker on the model, the sliders, the 90° / mirror / colour mask controls, duplicate, reorder, hide, delete, Clear, Undo and Redo by button and by Ctrl+Z / Ctrl+Y, and the four file dialogs (PNG file, save a copy, open a livery file, export as GLB). ## Not decoded / not done - A quick tap of Ctrl (key up right after the wheel) and a touchpad pinch were not tried; the wheel was turned with the key held half a second longer. - Not tried on macOS or Linux. - Seen in the pass and left as they are: the sticker picker opens on top of the Liveries panel when the view is narrow; two of the first twelve thumbnails in the picker show "could not be read"; putting on a game livery that places no stickers removes the stickers that were there (Undo brings them back).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:31:26 +00:00
github-bot changed target branch from master to gh-pr/499/base 2026-11-27 19:42:08 +00:00
github manually merged commit 04e470ece0 into gh-pr/499/base 2026-11-27 19:42:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.