diff --git a/app/config.js b/app/config.js index 003a48bd..409ca4e7 100644 --- a/app/config.js +++ b/app/config.js @@ -84,7 +84,7 @@ const prefsSchema = { "dragHoldDelay": { "description": "How long (in seconds) to hold the mouse still before a window becomes draggable. Click and hold without moving — the cursor changes to a hand when ready, then drag to move. This allows normal text selection and clicking without accidental window drags. Set to 0 for instant drag. Takes effect on new windows.", "type": "number", - "default": 0.5 + "default": 0.3 }, "defaultWindowWidth": { "description": "Default width for new windows (pixels)", @@ -174,7 +174,7 @@ const defaults = { hideTitleBar: true, restoreSession: true, sessionAutosaveInterval: 5, - dragHoldDelay: 0.5, + dragHoldDelay: 0.3, defaultWindowWidth: 1024, defaultWindowHeight: 768, persistWindowBounds: false diff --git a/backend/electron/tile-preload.cts b/backend/electron/tile-preload.cts index 043ce4c9..7e5473da 100644 --- a/backend/electron/tile-preload.cts +++ b/backend/electron/tile-preload.cts @@ -2324,8 +2324,9 @@ contextBridge.exposeInMainWorld('app', api); // ─── Click-and-Hold Window Drag (unified, application-wide) ───────── // // Provides drag-to-move for all frameless windows. Hold the mouse button -// down for `dragHoldDelay` seconds (default 1s; configurable via the -// `dragHoldDelay` pref in app/config.js), then drag to move the window. +// down for `dragHoldDelay` seconds (configurable via the `dragHoldDelay` +// pref in app/config.js — see Settings > Core), then drag to move the +// window. // Works in every tile window that doesn't opt out via `data-no-drag` on // (e.g. peek://app/page/index.html — canvas pages have their own // hold-drag system that pipes through the webview console-message diff --git a/docs/feature-tour.md b/docs/feature-tour.md index 7fe406f9..69cf1808 100644 --- a/docs/feature-tour.md +++ b/docs/feature-tour.md @@ -139,7 +139,7 @@ A comprehensive guide to every feature in Peek, the desktop web user agent. Peek **How to try it:** 1. Open a page (`open example.com` in the command palette). -2. The page appears as a floating window. Hold the mouse still on the page body for 1 second (configurable "drag hold delay" in Settings) -- the cursor changes to a hand, then drag to move the window. +2. The page appears as a floating window. Hold the mouse still on the page body briefly (configurable "drag hold delay" in Settings) -- the cursor changes to a hand, then drag to move the window. 3. Use the corner resize handle to change dimensions. ### Navbar @@ -173,7 +173,7 @@ A comprehensive guide to every feature in Peek, the desktop web user agent. Peek **Where in UI:** Settings > Core > "Window drag hold delay". **How to try it:** -1. Open Settings and set "Window drag hold delay" (default: 1 second). +1. Open Settings and set "Window drag hold delay" (default: 0.3 seconds). 2. On a page, click and hold without moving. After the delay, the cursor changes to a hand. 3. Now move the mouse to drag the window. 4. On the navbar background, drag is instant with no delay.