remove edgeScrolling prop/flag (since it's limited to fullscreen)
This commit is contained in:
parent
b3212c6c6a
commit
2305ae1a82
2 changed files with 36 additions and 39 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<SVGContent id="root" url="content/intro.svg" edge-scrolling @set-background="setBackground"/>
|
<SVGContent id="root" url="content/intro.svg" @set-background="setBackground"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|
|
@ -18,8 +18,7 @@ export default defineComponent({
|
||||||
url: {
|
url: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
}
|
||||||
edgeScrolling: Boolean
|
|
||||||
},
|
},
|
||||||
setup(props, {emit}) {
|
setup(props, {emit}) {
|
||||||
const root = ref(null);
|
const root = ref(null);
|
||||||
|
@ -58,7 +57,6 @@ export default defineComponent({
|
||||||
panzoom.value = pz;
|
panzoom.value = pz;
|
||||||
|
|
||||||
// Edge scrolling
|
// Edge scrolling
|
||||||
if (props.edgeScrolling) {
|
|
||||||
const MOVE_EDGE = 75;
|
const MOVE_EDGE = 75;
|
||||||
const MAX_SPEED = 20;
|
const MAX_SPEED = 20;
|
||||||
let edgeScrollInterval: number | undefined;
|
let edgeScrollInterval: number | undefined;
|
||||||
|
@ -97,7 +95,6 @@ export default defineComponent({
|
||||||
}, 1000 / 60);
|
}, 1000 / 60);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// Anchors
|
// Anchors
|
||||||
anchors.value = processAnchors(svg);
|
anchors.value = processAnchors(svg);
|
||||||
|
|
Loading…
Reference in a new issue