Skip to content

Commit 4214897

Browse files
dmitrii-drobotovOnePatchGuy
authored andcommitted
JBR-8408 Post accessibility value changed events for scroll bars
3rd party apps might want to subscribe for scroll bar value changed events to track scroll position. VoiceOver and Zoom don't react on these events.
1 parent 189907d commit 4214897

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessible.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ public void propertyChange(PropertyChangeEvent e) {
405405
AccessibleRole thisRole = accessible.getAccessibleContext()
406406
.getAccessibleRole();
407407
if (thisRole == AccessibleRole.SLIDER ||
408-
thisRole == AccessibleRole.PROGRESS_BAR) {
408+
thisRole == AccessibleRole.PROGRESS_BAR ||
409+
thisRole == AccessibleRole.SCROLL_BAR) {
409410
execute(ptr -> valueChanged(ptr));
410411
}
411412
}

0 commit comments

Comments
 (0)