mirror of
https://github.com/ae-utbm/sith.git
synced 2025-06-24 04:05:18 +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,
|
||||
);
|
||||
this.graph.userZoomingEnabled(this.isZoomEnabled);
|
||||
this.$refs.graph.prepend(this.$refs.zoomControl);
|
||||
this.loading = false;
|
||||
},
|
||||
}));
|
||||
|
@ -2,12 +2,12 @@
|
||||
width: 100%;
|
||||
height: 70vh;
|
||||
display: block;
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
.zoom-control {
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
}
|
||||
|
||||
.graph-toolbar {
|
||||
|
@ -94,7 +94,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="zoom-control" x-ref="zoomControl" x-show="graph !== undefined">
|
||||
<div class="zoom-control" x-ref="zoomControl">
|
||||
<button
|
||||
@click="graph.zoom(graph.zoom() + 1)"
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user