fix: The Alignment Tool's sliders are not linked to the Value fields #2605
fix: The Alignment Tool's sliders are not linked to the Value fields #2605RomanLut wants to merge 1 commit intoiNavFlight:masterfrom
Conversation
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
Review Summary by QodoFix alignment tool sliders not syncing with value fields
WalkthroughsDescription• Fix slider-value field synchronization using noUiSlider API - Replace jQuery .val() with noUiSlider.set() method - Add _settingSlider flag to prevent circular updates • Prevent slider event handlers from triggering value updates - Wrap update functions with flag checks in event listeners • Optimize 3D rendering with requestAnimationFrame throttling - Add _renderPending flag to limit renders to one per frame • Minor formatting cleanup (trailing whitespace removal) Diagramflowchart LR
A["Value Field Update"] -->|"Set _settingSlider=true"| B["Call noUiSlider.set()"]
B -->|"Set _settingSlider=false"| C["Update Complete"]
D["Slider Event"] -->|"Check _settingSlider flag"| E{"Flag is false?"}
E -->|"Yes"| F["Update Value Field"]
E -->|"No"| G["Skip Update"]
H["render3D() Called"] -->|"Check _renderPending"| I{"Pending?"}
I -->|"No"| J["Schedule requestAnimationFrame"]
I -->|"Yes"| K["Skip Render"]
File Changes1. tabs/magnetometer.js
|
Code Review by Qodo
|
|



Fixes #2589