feat: coerce speed to be larger than 0. only initialize timer after attached to visual tree.

This commit is contained in:
rabbitism
2024-12-18 14:10:07 +08:00
parent 7a364ff6b3
commit 36f0cf78c0
2 changed files with 30 additions and 24 deletions

View File

@@ -30,7 +30,7 @@
Name="speed"
AllowDrag="True"
u:FormItem.Label="Speed"
Minimum="1"
Minimum="-100"
Maximum="300"
Value="60"/>
<ToggleSwitch