Avoid click on graph when zooming

This commit is contained in:
Antoine Bartuccio 2025-06-18 16:09:31 +02:00
parent 94bdc5e615
commit ca593c7d81
Signed by: klmp200
GPG Key ID: E7245548C53F904B
3 changed files with 3 additions and 4 deletions

View File

@ -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;
}, },
})); }));

View File

@ -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 {

View File

@ -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)"
> >