diff --git a/frontend/editor3d/app/pages/PageEnigma/DragAndDrop/DndAsset.ts b/frontend/editor3d/app/pages/PageEnigma/DragAndDrop/DndAsset.ts index 59b0f67c8..2b9d127bf 100644 --- a/frontend/editor3d/app/pages/PageEnigma/DragAndDrop/DndAsset.ts +++ b/frontend/editor3d/app/pages/PageEnigma/DragAndDrop/DndAsset.ts @@ -11,7 +11,6 @@ import { currPosition, dragItem, overTimeline, - sidePanelWidth, timelineHeight, assetModalVisibleDuringDrag, reopenAfterDragSignal, @@ -75,10 +74,10 @@ class DndAsset { if (positionY < 69) { return false; } - if (positionY > pageHeight.value - timelineHeight.value) { + if (positionY > pageHeight.value) { return false; } - return positionX <= pageWidth.value - sidePanelWidth.value - 84; + return positionX <= pageWidth.value; } onPointerUp(event: PointerEvent) { diff --git a/frontend/editor3d/app/pages/PageEnigma/comps/SceneContainer/Letterbox.tsx b/frontend/editor3d/app/pages/PageEnigma/comps/SceneContainer/Letterbox.tsx index 872b0b9b3..e6abfb5ad 100644 --- a/frontend/editor3d/app/pages/PageEnigma/comps/SceneContainer/Letterbox.tsx +++ b/frontend/editor3d/app/pages/PageEnigma/comps/SceneContainer/Letterbox.tsx @@ -1,8 +1,6 @@ import { useSignals } from "@preact/signals-react/runtime"; import { twMerge } from "tailwind-merge"; - -import { EditorStates } from "~/pages/PageEnigma/enums"; -import { editorState, cameraAspectRatio } from "~/pages/PageEnigma/signals"; +import { cameraAspectRatio } from "~/pages/PageEnigma/signals"; import { calcMatteWidth, @@ -51,7 +49,7 @@ export const Letterbox = ({
@@ -73,14 +71,14 @@ const Matte = ({ if (matteOri === MatteOrientation.TOP_BOTTOM) { return (
); } return (
);