Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #294677: screenreader does not read consecutive frames
The screenreader info code tries to optimize during navigation and not read info that has not changed. Unfortunately this is a little too effective, we end up optimizing away information about consecutive frames. This commit fixes this by limiting the optimization to elements with bar and beat info, which is what we are trying to optimize. So frames and any other elements whose status bar info does not change from element to element will no longer be optimized. The code accomplishes this by clearing the oldcAcessibilityInfo for elements with no barsAndBeats info, then checking for empty oldAccessibilityInfo before reusing it. This lso has the benefit of forcing a rebuild of the accessibility info if it ever accidentally gets cleared for any other reason.
- Loading branch information