react-image-annotate
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -81,3 +81,3 @@ import { useRef } from "react"; | ||
e.preventDefault(); | ||
if (e.button === 1 || e.button === 0 && dragWithPrimary) return changeDragging(true); | ||
if (e.button === 1 || e.button === 2 || e.button === 0 && dragWithPrimary) return changeDragging(true); | ||
var projMouse = mat.applyToPoint(mousePosition.current.x, mousePosition.current.y); | ||
@@ -156,3 +156,3 @@ | ||
if (e.button === 1 || e.button === 0 && dragWithPrimary) return changeDragging(false); | ||
if (e.button === 1 || e.button === 2 || e.button === 0 && dragWithPrimary) return changeDragging(false); | ||
@@ -173,2 +173,5 @@ if (e.button === 0) { | ||
zoomIn(direction, mousePosition.current); // e.preventDefault() | ||
}, | ||
onContextMenu: function onContextMenu(e) { | ||
e.preventDefault(); | ||
} | ||
@@ -175,0 +178,0 @@ }; |
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread"; | ||
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
import React, { useRef, useCallback } from "react"; | ||
import { makeStyles } from "@material-ui/core/styles"; | ||
import { makeStyles, styled } from "@material-ui/core/styles"; | ||
import ImageCanvas from "../ImageCanvas"; | ||
@@ -40,2 +40,10 @@ import styles from "./styles"; | ||
}); | ||
var FullScreenContainer = styled("div")({ | ||
width: "100%", | ||
height: "100%", | ||
"& .fullscreen": { | ||
width: "100%", | ||
height: "100%" | ||
} | ||
}); | ||
export var MainLayout = function MainLayout(_ref2) { | ||
@@ -174,3 +182,3 @@ var state = _ref2.state, | ||
var nextImageHasRegions = !nextImage || nextImage.regions && nextImage.regions.length > 0; | ||
return /*#__PURE__*/React.createElement(FullScreen, { | ||
return /*#__PURE__*/React.createElement(FullScreenContainer, null, /*#__PURE__*/React.createElement(FullScreen, { | ||
handle: fullScreenHandle, | ||
@@ -305,4 +313,4 @@ onChange: function onChange(open) { | ||
} | ||
}))); | ||
})))); | ||
}; | ||
export default MainLayout; |
{ | ||
"name": "react-image-annotate", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@fortawesome/fontawesome-svg-core": "^1.2.12", |
214138
5577
68