quickshell: trigger column melt from target state, not float contact detection
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
1a71f2c07b
commit
2d43e6ed24
1 changed files with 6 additions and 5 deletions
|
|
@ -1288,12 +1288,13 @@ in
|
|||
property real openH: bar.activeDropdown ? tH : 0
|
||||
property bool snap: false
|
||||
readonly property real stubW: 32
|
||||
// True only while the panel's right edge actually touches
|
||||
// the frame column — the flush shape and the column-border
|
||||
// gap key off this, so a detaching (shrinking) panel
|
||||
// releases the column instead of dragging its border.
|
||||
// Melt toward the frame column whenever a flush dropdown
|
||||
// is the active target — the geometric melt runs during
|
||||
// the approach and un-melts during departure. (A previous
|
||||
// contact-detection compare against animated float
|
||||
// geometry proved unreliable on scaled displays.)
|
||||
readonly property bool mergedRight: visible && flushRight
|
||||
&& x + width >= bar.width - Theme.frameWidth - 0.5
|
||||
&& bar.activeDropdown !== null
|
||||
|
||||
// Grow-from / shrink-to the widget that owns the dropdown:
|
||||
// the panel opens as a small stub on the button and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue