@rpg-engine/long-bow 0.3.65 → 0.3.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/long-bow.cjs.development.js +0 -11
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +0 -11
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DraggableContainer.tsx +0 -12
package/dist/long-bow.esm.js
CHANGED
|
@@ -33219,17 +33219,6 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
33219
33219
|
} : _ref$initialPosition;
|
|
33220
33220
|
var draggableRef = useRef(null);
|
|
33221
33221
|
useOutsideClick(draggableRef, 'item-container');
|
|
33222
|
-
useEffect(function () {
|
|
33223
|
-
var handleKeyDown = function handleKeyDown(event) {
|
|
33224
|
-
if (event.key === 'Escape' && onCloseButton) {
|
|
33225
|
-
onCloseButton();
|
|
33226
|
-
}
|
|
33227
|
-
};
|
|
33228
|
-
document.addEventListener('keydown', handleKeyDown);
|
|
33229
|
-
return function () {
|
|
33230
|
-
document.removeEventListener('keydown', handleKeyDown);
|
|
33231
|
-
};
|
|
33232
|
-
}, [onCloseButton]);
|
|
33233
33222
|
useEffect(function () {
|
|
33234
33223
|
document.addEventListener('clickOutside', function (event) {
|
|
33235
33224
|
var e = event;
|