limit maxZoom (to a value where elements start disappearing anyway)
This commit is contained in:
parent
48e813471f
commit
24dc9c9f18
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue