From e7ba10d221c31bcbd2d2b3e1b1b5bacba12df1d7 Mon Sep 17 00:00:00 2001 From: evlist Date: Fri, 9 Sep 2022 20:24:16 +0200 Subject: [PATCH] Renames --- background-move/src/components/double-touch-handler.tsx | 8 ++++---- background-move/src/components/mouse-handler.tsx | 2 +- background-move/src/components/single-touch-handler.tsx | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/background-move/src/components/double-touch-handler.tsx b/background-move/src/components/double-touch-handler.tsx index 4be0451..076e68f 100644 --- a/background-move/src/components/double-touch-handler.tsx +++ b/background-move/src/components/double-touch-handler.tsx @@ -4,13 +4,13 @@ import _ from 'lodash'; import { Point } from './viewport'; -interface SingleTouchHandlerProps { +interface DoubleTouchHandlerProps { updateZoom: (zoomFactor: number) => void; children: any; } -const DoubleTouchHandler: react.FC = ( - props: SingleTouchHandlerProps +const DoubleTouchHandler: react.FC = ( + props: DoubleTouchHandlerProps ) => { const initialTouchState = { state: 'up', @@ -24,7 +24,7 @@ const DoubleTouchHandler: react.FC = ( const [touchState, setTouchState] = useState(initialTouchState); - console.log('TouchZoomHandler, touchState: ' + JSON.stringify(touchState)); + console.log('DoubleTouchHandler, touchState: ' + JSON.stringify(touchState)); const genericHandler = (event: any) => { console.log('Log - Event: ' + event.type); diff --git a/background-move/src/components/mouse-handler.tsx b/background-move/src/components/mouse-handler.tsx index ecef3fe..f2ed092 100644 --- a/background-move/src/components/mouse-handler.tsx +++ b/background-move/src/components/mouse-handler.tsx @@ -20,7 +20,7 @@ const MouseHandler: react.FC = ( const [mouseState, setMouseState] = useState(initialMouseState); - console.log('MouseShiftHandler, mouseState: ' + JSON.stringify(mouseState)); + console.log('MouseHandler, mouseState: ' + JSON.stringify(mouseState)); const genericHandler = (event: any) => { console.log('Log - Event: ' + event.type); diff --git a/background-move/src/components/single-touch-handler.tsx b/background-move/src/components/single-touch-handler.tsx index af08af2..29f27e1 100644 --- a/background-move/src/components/single-touch-handler.tsx +++ b/background-move/src/components/single-touch-handler.tsx @@ -4,13 +4,13 @@ import _ from 'lodash'; import { Point } from './viewport'; -interface TouchShiftHandlerProps { +interface SingleTouchHandlerProps { updateShift: (shiftDelta: Point) => void; children: any; } -const SingleTouchHandler: react.FC = ( - props: TouchShiftHandlerProps +const SingleTouchHandler: react.FC = ( + props: SingleTouchHandlerProps ) => { const initialTouchState = { state: 'up', @@ -19,7 +19,7 @@ const SingleTouchHandler: react.FC = ( const [touchState, setTouchState] = useState(initialTouchState); - console.log('TouchShiftHandler, touchState: ' + JSON.stringify(touchState)); + console.log('SingleTouchHandler, touchState: ' + JSON.stringify(touchState)); const genericHandler = (event: any) => { console.log('Log - Event: ' + event.type);