Repository navigation
Commit 652d5d9
committed
flutter_browser_tabs_example: a tab pressed in the title bar band drags the tab
The tab strip sits under the macOS title bar (content under the title bar),
and AppKit moves the window for any press in that 28 pt band before Flutter
sees it, so grabbing a tab by its upper half dragged the whole window
instead of the tab. The strip moves the window itself through its drag
session (SetPosition), so the window is made not movable by the system,
as core already does for TitleBarStyle.hidden.
Checked on macOS: a tab grabbed in the band reorders and the window stays;
the empty strip still moves the window; a tab pulled down still tears off.1 parent c63a165 commit 652d5d9
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| |||
0 commit comments