Skip to content

An open-source, self-hosted system for apps built with web technologies.

Dragging a maximized Window out takes its size at once when animations are off

zohayrslileh996504dc0a50
diff --git a/source/client/view/structure/desktop/windows/window-geometry-motion.ts b/source/client/view/structure/desktop/windows/window-geometry-motion.ts
index 4ceb636..66c2a33 100644
--- a/source/client/view/structure/desktop/windows/window-geometry-motion.ts
+++ b/source/client/view/structure/desktop/windows/window-geometry-motion.ts
@@ -329,6 +329,14 @@ export default function useWindowGeometryMotion({ position, size, animation, tra
function restoreGesture(region: WindowRegion) {
+ // Without animations, it is its restored size at once, as every other change is.
+ if (values.current.immediate) {
+
+ set(region)
+
+ return
+ }
+
const shown = read()
const scaleX = region.width === 0 ? 1 : shown.width / region.width
const scaleY = region.height === 0 ? 1 : shown.height / region.height