diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-16 14:20:34 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-16 14:20:34 +0200 |
| commit | e5caf6c6122684e441d1d73e2e0507fdd36c67e0 (patch) | |
| tree | bbc808d1d7fd52387c6e1dc8e7b074f7f499210d /opendc-web/opendc-web-ui/src/components/app | |
| parent | db1d2c2f8c18850dedf34b5d690b6cd6a1d1f6b5 (diff) | |
feat(ui): Support panning of the datacenter topology
This change enables support for panning the visualized datacenter
topology by using the mouse or holding shortcuts. Previously, this could
only be done through repeated key presses.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/app')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/components/app/map/MapStage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/app/map/MapStage.js b/opendc-web/opendc-web-ui/src/components/app/map/MapStage.js index 73accf3f..684ddf28 100644 --- a/opendc-web/opendc-web-ui/src/components/app/map/MapStage.js +++ b/opendc-web/opendc-web-ui/src/components/app/map/MapStage.js @@ -52,7 +52,7 @@ function MapStage() { return ( <HotKeys handlers={handlers} allowChanges={true} innerRef={ref} className={mapContainer}> - <Stage ref={stage} width={width} height={height} onMouseMove={updateMousePosition} onWheel={updateScale}> + <Stage ref={stage} width={width} height={height} onMouseMove={updateMousePosition} onWheel={updateScale} draggable> <Provider store={store}> <MapLayer /> <RoomHoverLayer mouseX={x} mouseY={y} /> |
