mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Make the sidebar resizer pointer target larger and have it ignore non-primary pointer events
This commit is contained in:
@@ -771,9 +771,9 @@ a.hide-toggle {
|
||||
.sidebar-resizer {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: -6px;
|
||||
right: -10px;
|
||||
width: 10px;
|
||||
height: 100%;
|
||||
width: 6px;
|
||||
cursor: col-resize;
|
||||
/* disable drag-to-select */
|
||||
user-select: none;
|
||||
|
||||
@@ -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