Prefer the UIA value over the UIA range value when reporting value, and respect minum and maximum values for ranges#12727
Conversation
|
@josephsl raised the point of progress bars. I assume proper progress bars have a min value of 0.0 and a max value of 100.0, so they'll just work. |
See test results for failed build of commit 9ba890b052 |
|
In a purfect world, yes, progressBars would be already between 0 and 100. But as in the past NVDA has used the min and max of the value to normalize to a percentage, we wouldn't really know if they were already correct or not. Changing this now would break announcement of any progress bar which happened to not conform to what we think is correct. We can either just take the risk and fix broken progress bars as we find them, or my preferrred option would be to make a ProgresssBar overlay class for UIA, which normalized the value property to between 0 and 100 like the old code did. |
|
I created a new overlay for progress bars. |
Link to issue number:
Fixes #12724
Summary of the issue:
Description of how this pull request fixes the issue:
Testing strategy:
Tested the sliders as mentioned in #12724 as well as the sliders in Windows settings.
Known issues with pull request:
It could be that the range correction (from 0 to 100) was intentional, but it looks like it was there from the beginning, at least since 2009.
Change log entries:
Bug fixes
Code Review Checklist: