Renames
This commit is contained in:
parent
af2fdf75a2
commit
e7ba10d221
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue