diff --git a/svgmap/src/components/map/DoubleTouchHandler.tsx b/svgmap/src/components/map/DoubleTouchHandler.tsx index 5467707..de2a1c7 100644 --- a/svgmap/src/components/map/DoubleTouchHandler.tsx +++ b/svgmap/src/components/map/DoubleTouchHandler.tsx @@ -29,20 +29,19 @@ const DoubleTouchHandler: react.FC = ( const [touchState, setTouchState] = useState(initialTouchState); - console.log('DoubleTouchHandler, touchState: ' + JSON.stringify(touchState)); + // console.log('DoubleTouchHandler, touchState: ' + JSON.stringify(touchState)); const genericHandler = (event: any) => { - console.log('Log - Event: ' + event.type); - if (event.type.startsWith('touch')) { - if (event.touches.length > 1) { - console.log( - `${event.touches.length} touches, (${event.touches[0].pageX}, ${event.touches[0].pageY}), (${event.touches[1].pageX}, ${event.touches[1].pageY})` - ); - } - - console.log('touchState: ' + JSON.stringify(touchState)); - return; - } + // console.log('Log - Event: ' + event.type); + // if (event.type.startsWith('touch')) { + // if (event.touches.length > 1) { + // console.log( + // `${event.touches.length} touches, (${event.touches[0].pageX}, ${event.touches[0].pageY}), (${event.touches[1].pageX}, ${event.touches[1].pageY})` + // ); + // } + // console.log('touchState: ' + JSON.stringify(touchState)); + // return; + // } }; const touchCancelHandler = (event: any) => { genericHandler(event); @@ -84,7 +83,7 @@ const DoubleTouchHandler: react.FC = ( (event.touches[0].pageY - event.touches[1].pageY) ** 2 ); const factor = newDistance / touchState.distance; - console.log(`+++++++++ ZOOM Factor is ${factor} ++++++++++`); + // console.log(`+++++++++ ZOOM Factor is ${factor} ++++++++++`); setTouchState({ state: 'double', touches: [ diff --git a/svgmap/src/components/map/SingleTouchHandler.tsx b/svgmap/src/components/map/SingleTouchHandler.tsx index 60359f3..ce7fdfa 100644 --- a/svgmap/src/components/map/SingleTouchHandler.tsx +++ b/svgmap/src/components/map/SingleTouchHandler.tsx @@ -25,19 +25,19 @@ const SingleTouchHandler: react.FC = ( const [touchState, setTouchState] = useState(initialTouchState); - console.log('SingleTouchHandler, touchState: ' + JSON.stringify(touchState)); + // console.log('SingleTouchHandler, touchState: ' + JSON.stringify(touchState)); const genericHandler = (event: any) => { - console.log('Log - Event: ' + event.type); - if (event.type.startsWith('touch')) { - if (event.touches.length > 0) { - console.log( - `Touch1 : (${event.touches[0].pageX}, ${event.touches[0].pageY})` - ); - } - console.log('touchState: ' + JSON.stringify(touchState)); - return; - } + // console.log('Log - Event: ' + event.type); + // if (event.type.startsWith('touch')) { + // if (event.touches.length > 0) { + // console.log( + // `Touch1 : (${event.touches[0].pageX}, ${event.touches[0].pageY})` + // ); + // } + // console.log('touchState: ' + JSON.stringify(touchState)); + // return; + // } }; const touchCancelHandler = (event: any) => {