mirror of
https://github.com/igorski/bitmappery.git
synced 2026-07-24 15:57:42 +02:00
Cleanups to touch decorator
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user