Tighten popout overlay trigger zones to 40px

This commit is contained in:
pax 2026-04-06 14:14:51 -05:00
parent e01aa86063
commit c6c4df1e77

View File

@ -343,7 +343,7 @@ class FullscreenPreview(QMainWindow):
if event.type() == QEvent.Type.MouseMove and self.isActiveWindow(): if event.type() == QEvent.Type.MouseMove and self.isActiveWindow():
y = event.position().y() if hasattr(event, 'position') else event.pos().y() y = event.position().y() if hasattr(event, 'position') else event.pos().y()
h = self.centralWidget().height() h = self.centralWidget().height()
toolbar_zone = 60 # px from top/bottom edge to trigger toolbar_zone = 40 # px from top/bottom edge to trigger
if y < toolbar_zone: if y < toolbar_zone:
self._toolbar.show() self._toolbar.show()
self._hide_timer.start() self._hide_timer.start()