(monitorMode)
| 4425 | // Design objects win the press (but not the 2nd click of a wall). |
| 4426 | if (_wifiHm.mode === 'design' && !_wifiHm.wallStart) { |
| 4427 | const hit = _wifiHmHitTest(p); |
| 4428 | if (hit) { |
| 4429 | _wifiHm.drag = hit; _wifiHm.dragMoved = false; |
| 4430 | try { cv.setPointerCapture(e.pointerId); } catch (_) {} |
| 4431 | cv.style.cursor = hit.kind === 'column-resize' ? 'nwse-resize' : 'grabbing'; |
| 4432 | e.preventDefault(); |
| 4433 | return; |
| 4434 | } |
| 4435 | } |
| 4436 | // Empty area: a drag pans the zoomed view. At 100% there is nothing |
| 4437 | // to pan, so leave the press alone (it stays a plain sample click). |
| 4438 | if (_wifiHm.view.zoom > 1 || e.shiftKey || e.button === 1) { |
| 4439 | _wifiHm.pan = { sx: e.clientX, sy: e.clientY, |
| 4440 | cx: _wifiHm.view.cx, cy: _wifiHm.view.cy, active: false }; |
| 4441 | try { cv.setPointerCapture(e.pointerId); } catch (_) {} |
no outgoing calls
no test coverage detected