mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-18 23:07:40 +08:00
fix: update window positioning to prevent overlap with the top of the viewport
This commit is contained in:
@@ -58,7 +58,7 @@ export const AppWindowsLayer: React.FC<AppWindowsLayerProps> = ({ windows, onClo
|
||||
const dx = e.clientX - startX;
|
||||
const dy = e.clientY - startY;
|
||||
let newX = Math.max(0, originX + dx);
|
||||
let newY = Math.max(48, originY + dy);
|
||||
let newY = Math.max(0, originY + dy);
|
||||
dragRef.current.newX = newX;
|
||||
dragRef.current.newY = newY;
|
||||
const el = windowEls.current[id];
|
||||
|
||||
Reference in New Issue
Block a user