Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c301df1

Browse files
author
nturgut
committed
fixes voice over for higher ios-safari versions
1 parent 1c1d273 commit c301df1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/web_ui/lib/src/engine/semantics/semantics_helper.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,15 @@ class MobileSemanticsEnabler extends SemanticsEnabler {
280280
return true;
281281
}
282282

283+
// ios-safari browsers which starts sending `pointer` events instead of
284+
// `touch` events. (Tested with 12.1 which uses touch events vs 13.5
285+
// which uses pointer events.)
283286
const Set<String> kInterestingEventTypes = <String>{
284287
'click',
285288
'touchstart',
286289
'touchend',
290+
'pointerdown',
291+
'pointerup',
287292
};
288293

289294
if (!kInterestingEventTypes.contains(event.type)) {

0 commit comments

Comments
 (0)