popout: increase overlay hover zone
Fixed 40px hover zone was too small on high-DPI monitors. Now scales to ~10% of window height with a 60px floor.
This commit is contained in:
parent
710839387a
commit
0c0dd55907
@ -1486,7 +1486,7 @@ class FullscreenPreview(QMainWindow):
|
||||
cursor_pos = self.mapFromGlobal(event.globalPosition().toPoint() if hasattr(event, 'globalPosition') else event.globalPos())
|
||||
y = cursor_pos.y()
|
||||
h = self.height()
|
||||
zone = 40 # px from top/bottom edge to trigger
|
||||
zone = max(60, h // 10) # ~10% of window height, floor 60px
|
||||
if y < zone:
|
||||
self._toolbar.show()
|
||||
self._hide_timer.start()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user