limit maxZoom (to a value where elements start disappearing anyway)

This commit is contained in:
Tomáš Mládek 2021-01-10 22:20:22 +01:00
parent 48e813471f
commit 24dc9c9f18

View file

@ -56,6 +56,7 @@ export default defineComponent({
// PanZoom
const pz = createPanZoom(element, {
smoothScroll: false,
maxZoom: 3637937,
zoomSpeed: 0.05,
zoomDoubleClickSpeed: 1,
onDoubleClick: function (e) {
@ -254,7 +255,7 @@ function processAudio(svg: XMLDocument): AudioAreaDef[] {
function processStart(svg: XMLDocument): SVGRectElement | null {
const start = svg.getElementById("start");
if (start) {
start.classList.add("hidden")
start.classList.add("hidden");
}
return start as (SVGRectElement | null);
}