diff --git a/src/SVG/SVG.tsx b/src/SVG/SVG.tsx index 81f5bf4..e57d6cb 100644 --- a/src/SVG/SVG.tsx +++ b/src/SVG/SVG.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { AvailableContainer } from '../Interfaces/AvailableContainer'; import { Container } from './Elements/Container'; import { MainContainer } from './Elements/MainContainer'; -import * as svgPanZoom from 'svg-pan-zoom'; +import * as SvgPanZoom from 'svg-pan-zoom'; interface ISVGProps { MainContainer: AvailableContainer @@ -46,8 +46,11 @@ export class SVG extends React.Component { this.svg.current === null) { return; } + const settings: SvgPanZoom.Options = { + zoomScaleSensitivity: 1 + }; - svgPanZoom(this.svg.current); + SvgPanZoom(this.svg.current, settings); } render() {