Moved to domTarget for useGesture to fix pinch zoom error on Mac
This commit is contained in:
@@ -81,7 +81,7 @@ function MapInteraction({
|
||||
|
||||
const [interactionEmitter] = useState(new EventEmitter());
|
||||
|
||||
const bind = useStageInteraction(
|
||||
useStageInteraction(
|
||||
mapStageRef.current,
|
||||
stageScale,
|
||||
setStageScale,
|
||||
@@ -199,7 +199,6 @@ function MapInteraction({
|
||||
outline: "none",
|
||||
}}
|
||||
ref={containerRef}
|
||||
{...bind()}
|
||||
className="map"
|
||||
>
|
||||
<ReactResizeDetector handleWidth handleHeight onResize={handleResize}>
|
||||
|
||||
Reference in New Issue
Block a user