Bug 265162
Summary: | AX: voice over not sending simulating correct events | ||
---|---|---|---|
Product: | WebKit | Reporter: | nickygencs |
Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Blocker | CC: | andresg_22, webkit-bug-importer |
Priority: | P1 | Keywords: | InRadar |
Version: | Safari 17 | ||
Hardware: | Other | ||
OS: | iOS 17 |
nickygencs
<!DOCTYPE html>
<html>
<body>
<div tabindex="-1" id="a">My First Heading</div>
<script>
function x(event) {
console.log(event.type, event)
};
document.getElementById("a").addEventListener('mousedown', x);
document.getElementById("a").addEventListener('mouseup', x);
document.getElementById("a").addEventListener('focus', x);
document.getElementById("a").addEventListener('blur', x);
document.getElementById("a").addEventListener('touchstart', x);
document.getElementById("a").addEventListener('touchend', x);
document.getElementById("a").addEventListener('touchcancel', x);
document.getElementById("a").addEventListener('click', x);
document.getElementById("a").addEventListener('dblclick', x);
const el = document.getElementById("a");
el.onpointerdown = x;
el.onpointerup = x;
el.onpointercancel = x;
</script>
</body>
</html>
According to apple docs for voiceover: “Double-tap the selected item=Triple tap" https://support.apple.com/guide/iphone/use-voiceover-gestures-iph3e2e2281/ios However I’m not seeing the correct JavaScript events being simulated. The code above adds listeners for touchstart, touchend, click, and dblclick events and then logs them. With voiceover off and double tapping the div in the fiddle I see the following events logged: touchstart touchend click touchstart touchend click dblclick With voiceover on and triple tapping the div in the fiddle I see the following events logged: touchstart touchend (1098ms apart)
This makes it impossible for anyone to actually capture a dblclick when voiceover is on? is this expected?
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/118663243>
nickygencs
any updates?