Cleanups to touch decorator

This commit is contained in:
Igor Zinken
2026-04-26 11:53:09 +02:00
parent 6584c86633
commit 801c8b01c4
2 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import type { GestureEvent, Pan, Pinch, PointerListener, Tap, TwoFingerPan } from "contactjs";
import { mapGetters, mapMutations } from "vuex";
// import { mapGetters, mapMutations } from "vuex";
import ToolTypes, { MAX_ZOOM } from "@/definitions/tool-types";
import { scale } from "@/math/unit-math";
import { getCanvasInstance } from "@/services/canvas-service";
@@ -15,16 +15,19 @@ let Contact: {
};
export default {
/*
computed: {
...mapGetters([
"activeLayerIndex",
"zoomOptions",
]),
},
*/
methods: {
/*
...mapMutations([
"updateLayerTransform",
]),
*/
detectTouch(): void {
this.usesTouch = false;
const handler = () => {

View File

@@ -299,7 +299,7 @@ export default {
},
},
async mounted(): Promise<void> {
this.detectTouch();
this.detectTouch(); // see touch-decorator mixin
await this.$nextTick();
this.cacheContainerSize();
this.scaleWrapper();