1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Accessibility: Send structure change message when TreeView viewport is scrolled

This commit is contained in:
ed 2021-05-20 17:58:40 +01:00
parent 9147a5e535
commit 5e6fe0db3d

View file

@ -625,6 +625,10 @@ public:
const auto hasScrolledSideways = (newVisibleArea.getX() != lastX);
lastX = newVisibleArea.getX();
updateComponents (hasScrolledSideways);
if (auto* tree = getParentComponent())
if (auto* handler = tree->getAccessibilityHandler())
handler->notifyAccessibilityEvent (AccessibilityEvent::structureChanged);
}
ContentComponent* getContentComp() const noexcept