Bug 265162 - AX: voice over not sending simulating correct events
Summary: AX: voice over not sending simulating correct events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 17
Hardware: Other iOS 17
: P1 Blocker
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-20 15:06 PST by nickygencs
Modified: 2024-01-31 09:26 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nickygencs 2023-11-20 15:06:12 PST
<!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?
Comment 1 Radar WebKit Bug Importer 2023-11-20 15:06:20 PST
<rdar://problem/118663243>
Comment 2 nickygencs 2024-01-31 09:26:26 PST
any updates?