(e: PointerEvent)
| 55 | }; |
| 56 | |
| 57 | const isMiddleButtonDrag = (e: PointerEvent): boolean => |
| 58 | e.pointerType === 'mouse' && (e.buttons & 4) !== 0; |
| 59 | |
| 60 | const isShiftLeftDrag = (e: PointerEvent): boolean => |
| 61 | e.pointerType === 'mouse' && e.shiftKey && (e.buttons & 1) !== 0; |