]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
fix drag&drop for pointerType 'pen'
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 23 Feb 2022 11:05:06 +0000 (12:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Feb 2022 11:14:13 +0000 (12:14 +0100)
commitda24e83f64607af940af187d8a3d63ced50c2a6f
treefc5cd18e44ab80cac3b5565628248b21ba5326a6
parent4f5e2bd12b1ae084c84dbd14da3f3c6c68d083f3
fix drag&drop for pointerType 'pen'

some devices (e.g. vms via novnc, and some laptops) get the pointerType
'pen' under chromium.

the DragZone handler tries to ignore touch input for that by
checking for "=== 'mouse'" which does not include 'pen'
so override that to handle it when the pointerType !== 'touch'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/Toolkit.js