Skip to content

Make title field draggable#5574

Open
ComputelessComputer wants to merge 1 commit into
mainfrom
fix/title-field-drag-region
Open

Make title field draggable#5574
ComputelessComputer wants to merge 1 commit into
mainfrom
fix/title-field-drag-region

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Mark the session title shell as a Tauri drag region and let the top-strip drag handler honor explicit drag-region targets while preserving regular input behavior.


Note

Low Risk
Desktop UI and pointer-event behavior only; changes are covered by updated unit tests with no auth or data-path impact.

Overview
Improves frameless window dragging on the desktop app by marking session chrome (title, outer header, note tab header, session surface header) with data-tauri-drag-region, while keeping real controls clickable via data-tauri-drag-region="false".

The session title shell is draggable when unfocused; on focus it sets the shell to false so typing and selection work normally. The main-area pointer handler in body.tsx now treats data-tauri-drag-region (and optional data-main-area-window-drag-region) as explicit drag targets, so dragging can start from those regions even over inputs in the top strip, without stealing drags from ordinary note fields.

Reviewed by Cursor Bugbot for commit e81872f. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit e81872f
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a2c08e8caf1590008979672

Mark the session title shell as a Tauri drag region and let the top-strip drag handler honor explicit drag-region targets while preserving regular input behavior.
@ComputelessComputer ComputelessComputer force-pushed the fix/title-field-drag-region branch from 1c519fd to e81872f Compare June 12, 2026 13:25

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e81872f. Configure here.

return (
<div className="-mx-2 flex h-full flex-col">
<div className="relative px-2">
<div data-tauri-drag-region className="relative px-2">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note tabs start window drag

Medium Severity

Marking the whole note header wrapper as a Tauri drag region makes tab and template controls count as explicit drag targets in the main-area pointer handler, so a small pointer move can start window dragging and suppress their click instead of switching tabs or opening the template menu.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e81872f. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant