Bug 210050

Summary: Cannot detect middle click with bluetooth mouse on iPadOS 13.4
Product: WebKit Reporter: Ashley Gullen <ashley>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: graouts, ogay, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: iPhone / iPad   
OS: iOS 13   

Description Ashley Gullen 2020-04-06 09:09:02 PDT
Middle clicks with a bluetooth mouse on iPadOS 13.4 register as a left click instead of a middle click. The 'button' property of both mousedown and pointerdown events is 0 (for left button), when it should be 1 (for middle button).

Demo: https://downloads.scirra.com/labs/ipadosmouse/

It works correctly with the same bluetooth mouse on macOS, so it is not the mouse. I used a Microsoft Bluetooth Mouse (RJN-00002).

This breaks any middle mouse button feature in web apps on iPadOS, like dragging the middle mouse button for pan scrolling.
Comment 1 Radar WebKit Bug Importer 2020-04-07 11:42:20 PDT
<rdar://problem/61402823>
Comment 2 Tim Horton 2020-04-07 13:08:38 PDT
Hmm, indeed, good point! Right now we only have primary and secondary buttons.