mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Toggle fullscreen by double click in media viewe title area
This commit is contained in:
parent
b0ecb2c535
commit
88703ba1eb
1 changed files with 2 additions and 1 deletions
|
@ -808,7 +808,7 @@ void OverlayWidget::setupWindow() {
|
|||
return result;
|
||||
}
|
||||
if (widgetPoint.y() <= st::mediaviewTitleButton.height) {
|
||||
result |= Flag::Menu;
|
||||
result |= Flag::Menu | Flag::FullScreen;
|
||||
}
|
||||
const auto inControls = ((_over != Over::None) && (_over != Over::Video));
|
||||
if (inControls
|
||||
|
@ -6046,6 +6046,7 @@ void OverlayWidget::handleMouseRelease(
|
|||
_dragging = 0;
|
||||
setCursor(style::cur_default);
|
||||
} else if (!_windowed
|
||||
&& position.y() > st::mediaviewTitleButton.height
|
||||
&& (position - _lastAction).manhattanLength()
|
||||
>= st::mediaviewDeltaFromLastAction) {
|
||||
if (_themePreviewShown) {
|
||||
|
|
Loading…
Add table
Reference in a new issue