Skip to content

Commit 22b8bd5

Browse files
committed
Disable double-click zoom
1 parent a13be82 commit 22b8bd5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

demo/src/main/public/flowrun.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184

185185
.flowrun-draw svg {
186186
width: 100%;
187-
max-height: 100%;
187+
height: 100%;
188188
}
189189

190190

editor/src/main/scala/dev/sacode/flowrun/edit/FlowchartPresenter.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class FlowchartPresenter(
3131
)
3232
)
3333

34+
graphviz.on("end", { (thiz: js.Dynamic) =>
35+
thiz.zoomSelection().on("dblclick.zoom", null)
36+
}: js.ThisFunction0[js.Dynamic, Unit])
37+
3438
loadCurrentFunction()
3539

3640
def disable(mode: ExecMode): Unit =

0 commit comments

Comments
 (0)