How to disable panning/dragging in Observables in GLMakie? I just want to click on scatterplot, not suddenly fall into constant zooming:
Current code for mouse click control is simple:
on(events(f).mousebutton, priority = 1) do event
if event.button == Mouse.left && event.action == Mouse.press
end
end
jules
2
There are panlock and zoomlock attributes or you can look for deregister_interaction
1 Like
I tried this:
ax = Axis(
f[1, 1],
xautolimitmargin = (0, 0),
yautolimitmargin = (0, 0),
title = str,
xlabel = "Channels",
ylabel = "Index of event variable",
xpanlock = true,
ypanlock = true,
xzoomlock = true,
yzoomlock = true,
xrectzoom = false,
yrectzoom = false,
)
There is an effect, but you need to find correct axis!