Skip to content

Commit

Permalink
Disable zooming in full screen video view.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 18, 2023
1 parent ccc6102 commit a2fe91a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ void OverlayWidget::zoomOut() {
}

void OverlayWidget::zoomReset() {
if (_stories) {
if (_stories || _fullScreenVideo) {
return;
}
auto newZoom = _zoom;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit a2fe91a

Please sign in to comment.