Bug 265162

Summary: AX: voice over not sending simulating correct events
Product: WebKit Reporter: nickygencs
Component: AccessibilityAssignee: 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   

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?