Merge branch 'master' into release/v1.7.0
This commit is contained in:
commit
9131557b71
@ -2,6 +2,7 @@ import React, { useContext, useState, useEffect, useRef } from "react";
|
|||||||
import { Image as KonvaImage, Group } from "react-konva";
|
import { Image as KonvaImage, Group } from "react-konva";
|
||||||
import { useSpring, animated } from "react-spring/konva";
|
import { useSpring, animated } from "react-spring/konva";
|
||||||
import useImage from "use-image";
|
import useImage from "use-image";
|
||||||
|
import Konva from "konva";
|
||||||
|
|
||||||
import useDataSource from "../../helpers/useDataSource";
|
import useDataSource from "../../helpers/useDataSource";
|
||||||
import useDebounce from "../../helpers/useDebounce";
|
import useDebounce from "../../helpers/useDebounce";
|
||||||
@ -16,6 +17,9 @@ import TokenLabel from "../token/TokenLabel";
|
|||||||
|
|
||||||
import { tokenSources, unknownSource } from "../../tokens";
|
import { tokenSources, unknownSource } from "../../tokens";
|
||||||
|
|
||||||
|
// Enable hit detection on drag to allow for vehicle tokens
|
||||||
|
Konva.hitOnDragEnabled = true;
|
||||||
|
|
||||||
const snappingThreshold = 1 / 7;
|
const snappingThreshold = 1 / 7;
|
||||||
|
|
||||||
function MapToken({
|
function MapToken({
|
||||||
|
Loading…
Reference in New Issue
Block a user