mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-15 17:25:26 -04:00
fix(windowDrag): disable duplicate top-edge fullscreen snap (#3495)
windowDrag.js ran its own top-edge fullscreen system (cy <= SNAP_PX → _enterFs()) independently of the tileManager.js snap zones, causing duplicate/unexpected fullscreen behavior when dragging window chips toward the top of the screen. Hardcode enableFullscreen to false. tileManager.js remains the single source of truth for fullscreen/maximize snap behavior and is untouched.
This commit is contained in:
@@ -61,7 +61,7 @@ export function makeWindowDraggable(modal, options = {}) {
|
||||
const fsClass = options.fsClass || null;
|
||||
const onEnterFullscreen = options.onEnterFullscreen || null;
|
||||
const onExitFullscreen = options.onExitFullscreen || null;
|
||||
const enableFullscreen = options.enableFullscreen !== false && !!onEnterFullscreen;
|
||||
const enableFullscreen = false;
|
||||
const onDragEnd = options.onDragEnd || null;
|
||||
const onDragStart = options.onDragStart || null;
|
||||
const skipSelector = options.skipSelector || 'button, input, select';
|
||||
|
||||
Reference in New Issue
Block a user