mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Disable zooming in full screen video view.
This commit is contained in:
parent
ccc61028b8
commit
a2fe91af03
1 changed files with 4 additions and 2 deletions
|
@ -2055,7 +2055,7 @@ void OverlayWidget::zoomOut() {
|
|||
}
|
||||
|
||||
void OverlayWidget::zoomReset() {
|
||||
if (_stories) {
|
||||
if (_stories || _fullScreenVideo) {
|
||||
return;
|
||||
}
|
||||
auto newZoom = _zoom;
|
||||
|
@ -5179,7 +5179,9 @@ void OverlayWidget::handleWheelEvent(not_null<QWheelEvent*> e) {
|
|||
}
|
||||
|
||||
void OverlayWidget::setZoomLevel(int newZoom, bool force) {
|
||||
if (_stories || (!force && _zoom == newZoom)) {
|
||||
if (_stories
|
||||
|| (!force && _zoom == newZoom)
|
||||
|| (_fullScreenVideo && newZoom != kZoomToScreenLevel)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue