mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 01:24:05 +02:00
Make the sidebar resizer pointer target larger and have it ignore non-primary pointer events
This commit is contained in:
@@ -59,6 +59,8 @@ export function uiSidebar(context) {
|
||||
function pointerdown() {
|
||||
if (downPointerId) return;
|
||||
|
||||
if ('button' in d3_event && d3_event.button !== 0) return;
|
||||
|
||||
downPointerId = d3_event.pointerId || 'mouse';
|
||||
|
||||
lastClientX = d3_event.clientX;
|
||||
|
||||
Reference in New Issue
Block a user