diff --git a/src/lib/world/clientState/Floating.ts b/src/lib/world/clientState/Floating.ts index 7ad465a..7499d48 100644 --- a/src/lib/world/clientState/Floating.ts +++ b/src/lib/world/clientState/Floating.ts @@ -23,6 +23,7 @@ namespace ClientState { } } + // TODO: move to `Tiled.restoreClientAfterTiling` private static limitHeight(client: ClientWrapper) { const placementArea = Workspace.clientArea( ClientAreaOption.PlacementArea, diff --git a/src/lib/world/clientState/Tiled.ts b/src/lib/world/clientState/Tiled.ts index 0fd382d..c19c89d 100644 --- a/src/lib/world/clientState/Tiled.ts +++ b/src/lib/world/clientState/Tiled.ts @@ -114,6 +114,8 @@ namespace ClientState { const dx = Math.round(newCenterX - oldCenterX); const dy = Math.round(newCenterY - oldCenterY); if (dx !== 0 || dy !== 0) { + // TODO: instead of passing dx and dy, remember relative (to the parent) x and y for each + // transient window and use them for `moveTransients` and `ensureTransientsVisible` client.moveTransients(dx, dy); }