This commit is contained in:
Eric van der Vlist 2022-09-09 20:24:16 +02:00
parent af2fdf75a2
commit e7ba10d221
3 changed files with 9 additions and 9 deletions

View File

@ -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<SingleTouchHandlerProps> = (
props: SingleTouchHandlerProps
const DoubleTouchHandler: react.FC<DoubleTouchHandlerProps> = (
props: DoubleTouchHandlerProps
) => {
const initialTouchState = {
state: 'up',
@ -24,7 +24,7 @@ const DoubleTouchHandler: react.FC<SingleTouchHandlerProps> = (
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);

View File

@ -20,7 +20,7 @@ const MouseHandler: react.FC<MouseHandlerProps> = (
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);

View File

@ -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<TouchShiftHandlerProps> = (
props: TouchShiftHandlerProps
const SingleTouchHandler: react.FC<SingleTouchHandlerProps> = (
props: SingleTouchHandlerProps
) => {
const initialTouchState = {
state: 'up',
@ -19,7 +19,7 @@ const SingleTouchHandler: react.FC<TouchShiftHandlerProps> = (
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);