minify fixed, panzoom button selectors fixed

This commit is contained in:
zino committed 2021-05-23 19:44:01 +02:00
1 parent e72fcc4a68
commit 525e6af6a5
6 files changed
+132 -28198

No files matched your search

+3 -3
View File
@@ -22,9 +22,9 @@ export function addPanzoom(inSelector: string, inBtnZoomIn: string | undefined =
function addPanzoomEvents(inBtnZoomIn: string | undefined, inBtnZoomOut: string | undefined, inBtnResetZoom: string | undefined, containerParent: HTMLElement, panzoom: PanzoomObject): void {
const eventMapping = [
{ Selector: inBtnZoomIn, PanzoomFunction: panzoom.zoomIn, Type: "Click" },
{ Selector: inBtnZoomOut, PanzoomFunction: panzoom.zoomOut, Type: "Click" },
{ Selector: inBtnResetZoom, PanzoomFunction: panzoom.reset, Type: "Click" },
{ Selector: inBtnZoomIn, PanzoomFunction: panzoom.zoomIn, Type: "click" },
{ Selector: inBtnZoomOut, PanzoomFunction: panzoom.zoomOut, Type: "click" },
{ Selector: inBtnResetZoom, PanzoomFunction: panzoom.reset, Type: "click" },
{ HTMLElement: containerParent, PanzoomFunction: panzoom.zoomWithWheel, Type: "wheel" }
];