Renames
This commit is contained in:
parent
af2fdf75a2
commit
e7ba10d221
|
@ -4,13 +4,13 @@ import _ from 'lodash';
|
||||||
|
|
||||||
import { Point } from './viewport';
|
import { Point } from './viewport';
|
||||||
|
|
||||||
interface SingleTouchHandlerProps {
|
interface DoubleTouchHandlerProps {
|
||||||
updateZoom: (zoomFactor: number) => void;
|
updateZoom: (zoomFactor: number) => void;
|
||||||
children: any;
|
children: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
const DoubleTouchHandler: react.FC<SingleTouchHandlerProps> = (
|
const DoubleTouchHandler: react.FC<DoubleTouchHandlerProps> = (
|
||||||
props: SingleTouchHandlerProps
|
props: DoubleTouchHandlerProps
|
||||||
) => {
|
) => {
|
||||||
const initialTouchState = {
|
const initialTouchState = {
|
||||||
state: 'up',
|
state: 'up',
|
||||||
|
@ -24,7 +24,7 @@ const DoubleTouchHandler: react.FC<SingleTouchHandlerProps> = (
|
||||||
|
|
||||||
const [touchState, setTouchState] = useState(initialTouchState);
|
const [touchState, setTouchState] = useState(initialTouchState);
|
||||||
|
|
||||||
console.log('TouchZoomHandler, touchState: ' + JSON.stringify(touchState));
|
console.log('DoubleTouchHandler, touchState: ' + JSON.stringify(touchState));
|
||||||
|
|
||||||
const genericHandler = (event: any) => {
|
const genericHandler = (event: any) => {
|
||||||
console.log('Log - Event: ' + event.type);
|
console.log('Log - Event: ' + event.type);
|
||||||
|
|
|
@ -20,7 +20,7 @@ const MouseHandler: react.FC<MouseHandlerProps> = (
|
||||||
|
|
||||||
const [mouseState, setMouseState] = useState(initialMouseState);
|
const [mouseState, setMouseState] = useState(initialMouseState);
|
||||||
|
|
||||||
console.log('MouseShiftHandler, mouseState: ' + JSON.stringify(mouseState));
|
console.log('MouseHandler, mouseState: ' + JSON.stringify(mouseState));
|
||||||
|
|
||||||
const genericHandler = (event: any) => {
|
const genericHandler = (event: any) => {
|
||||||
console.log('Log - Event: ' + event.type);
|
console.log('Log - Event: ' + event.type);
|
||||||
|
|
|
@ -4,13 +4,13 @@ import _ from 'lodash';
|
||||||
|
|
||||||
import { Point } from './viewport';
|
import { Point } from './viewport';
|
||||||
|
|
||||||
interface TouchShiftHandlerProps {
|
interface SingleTouchHandlerProps {
|
||||||
updateShift: (shiftDelta: Point) => void;
|
updateShift: (shiftDelta: Point) => void;
|
||||||
children: any;
|
children: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SingleTouchHandler: react.FC<TouchShiftHandlerProps> = (
|
const SingleTouchHandler: react.FC<SingleTouchHandlerProps> = (
|
||||||
props: TouchShiftHandlerProps
|
props: SingleTouchHandlerProps
|
||||||
) => {
|
) => {
|
||||||
const initialTouchState = {
|
const initialTouchState = {
|
||||||
state: 'up',
|
state: 'up',
|
||||||
|
@ -19,7 +19,7 @@ const SingleTouchHandler: react.FC<TouchShiftHandlerProps> = (
|
||||||
|
|
||||||
const [touchState, setTouchState] = useState(initialTouchState);
|
const [touchState, setTouchState] = useState(initialTouchState);
|
||||||
|
|
||||||
console.log('TouchShiftHandler, touchState: ' + JSON.stringify(touchState));
|
console.log('SingleTouchHandler, touchState: ' + JSON.stringify(touchState));
|
||||||
|
|
||||||
const genericHandler = (event: any) => {
|
const genericHandler = (event: any) => {
|
||||||
console.log('Log - Event: ' + event.type);
|
console.log('Log - Event: ' + event.type);
|
||||||
|
|
Loading…
Reference in New Issue