mirror of
https://github.com/ae-utbm/sith.git
synced 2025-06-24 20:25:16 +00:00
Avoid click on graph when zooming
This commit is contained in:
parent
94bdc5e615
commit
ca593c7d81
@ -287,7 +287,6 @@ document.addEventListener("alpine:init", () => {
|
|||||||
config.activeUser,
|
config.activeUser,
|
||||||
);
|
);
|
||||||
this.graph.userZoomingEnabled(this.isZoomEnabled);
|
this.graph.userZoomingEnabled(this.isZoomEnabled);
|
||||||
this.$refs.graph.prepend(this.$refs.zoomControl);
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 70vh;
|
height: 70vh;
|
||||||
display: block;
|
display: block;
|
||||||
overflow: clip;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.zoom-control {
|
.zoom-control {
|
||||||
float: right;
|
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.graph-toolbar {
|
.graph-toolbar {
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="zoom-control" x-ref="zoomControl" x-show="graph !== undefined">
|
<div class="zoom-control" x-ref="zoomControl">
|
||||||
<button
|
<button
|
||||||
@click="graph.zoom(graph.zoom() + 1)"
|
@click="graph.zoom(graph.zoom() + 1)"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user