Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Pen: View speed screenshot test (100% and 200%, 1440x900, 1024x768); testers line for a real Huion or Wacom on Windows

islandmeda03be933ebbd
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0818f1f0..1cedb502 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -950,6 +950,8 @@ if(SCULPTFORGE_BUILD_TESTS)
sculptforge_ui_test(menu_stable_720 menu_stable --size 1280x720)
sculptforge_ui_test(title_version_1440 title_version --size 1440x900)
sculptforge_ui_test(title_version_1024 title_version --size 1024x768)
+ sculptforge_ui_test(tablet_view_speed_1440 tablet_view_speed --size 1440x900)
+ sculptforge_ui_test(tablet_view_speed_1024 tablet_view_speed --size 1024x768)
sculptforge_ui_test(timeline_narrow_1024 timeline_narrow --size 1024x768)
# The membership moments' card and the top bar's heart at 1440 and 1024 px (tests/ui/support/support_shots.sfui).
sculptforge_ui_test(support_shots_1440 support/support_shots --size 1440x900)
diff --git a/changes/fix-pen-ui-clicks-orbit.md b/changes/fix-pen-ui-clicks-orbit.md
index e07cc2cf..3f271f7c 100644
--- a/changes/fix-pen-ui-clicks-orbit.md
+++ b/changes/fix-pen-ui-clicks-orbit.md
@@ -13,6 +13,8 @@ testers:
picks the first time, also right after bringing the pen in from out of range.
- Same tablet: drag on the background with the pen tip, then Preferences > Tablet > View speed 0.40 and drag again:
the view turns less than half as far; the mouse turns it as before.
+ - Windows with a real Huion or Wacom tablet: orbiting with the pen feels right at View speed 1.00, and lower values
+ slow it (0.50 about half as far per stroke).
---
Root causes: the missed taps were SDL 3.2's stuck pen-mouse state and the driver's unreleased presses (#95, #13),
fixed on main after the report (10-31 to 11-02); tests/ui/pen_quick_taps.sfui replays the report with one-frame taps
diff --git a/tests/ui/tablet_view_speed.sfui b/tests/ui/tablet_view_speed.sfui
new file mode 100644
index 00000000..bd803e85
--- /dev/null
+++ b/tests/ui/tablet_view_speed.sfui
@@ -0,0 +1,17 @@
+# Preferences > Tablet > View speed (the pen's own orbit, pan and zoom speed): the row fits and reads at 100% and
+# 200% UI scale, and in narrow windows (CMake also runs it at 1440x900 and 1024x768).
+run ui_look look=classic layout=classic # (Preferences on the palette bar, as tablet.sfui)
+run new_sphere subdivisions=3
+click "Preferences##palette.preferences"
+click "Tablet##preferences.tablet"
+expect "##tablet_view_speed"
+expect_value tablet_view_speed == 1
+expect_text View speed 1.00
+shot tablet-100
+key escape
+ui_scale 200
+wait 0.3
+click "Preferences##palette.preferences" # (Tablet stays open: clicking it again would fold it)
+hover "##tablet_view_speed" # (scrolls the panel to it in short windows)
+expect_text View speed 1.00
+shot tablet-200