MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _updateMonitorModeBadge

Function _updateMonitorModeBadge

web/scripts/ragnar_modern.js:4427–4438  ·  view source on GitHub ↗
(monitorMode)

Source from the content-addressed store, hash-verified

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 (_) {}

Callers 3

runThreatSweepFunction · 0.70
_startThreatMonitorPollFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected