ntegration and bug fix

This commit is contained in:
vdv committed 2022-10-18 13:45:16 +02:00
1 parent 90e2c833a2
commit 7912d0bfe8
5 files changed
+85 -33

No files matched your search

+6 -1
View File
@@ -2,6 +2,7 @@ import react, { useState } from 'react';
import { throttle } from 'lodash';
import { Point } from './types';
import { handlersConfig } from './config';
import './Handler.css';
export interface HandlersProperties {
/**Transform the map:
@@ -17,7 +18,11 @@ export interface HandlersProperties {
/**
*
* @param props
* @returns A div with handlers
* @returns A div with the following handlers
* * mouseLeave, mouseDown and mouseUp to track the mouse state
* * mouseMove to shift the map if the mouse is down
*
* TODO: Check that using clientX instead of pageX (to pass unit tests) works.
*/
export const Handlers: react.FC<HandlersProperties> = (
props: HandlersProperties