Skip to content

Commit

Permalink
Try to fix tdesktop/issues/7931
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksusklim authored May 8, 2021
1 parent 95b4435 commit 32da0d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,9 @@ void OverlayWidget::activateControls() {
}
}
if (_controlsState == ControlsHiding || _controlsState == ControlsHidden) {
if (!_fullScreenVideo && _zoom > _zoomToDefault) {
return;
}
_controlsState = ControlsShowing;
_controlsAnimStarted = crl::now();
_controlsOpacity.start(1);
Expand Down Expand Up @@ -3678,6 +3681,9 @@ void OverlayWidget::wheelEvent(QWheelEvent *e) {
}

void OverlayWidget::setZoomLevel(int newZoom, bool force) {
if (!_fullScreenVideo && _zoom > _zoomToDefault) {
onHideControls();
}
if (!force && _zoom == newZoom) {
return;
}
Expand Down

0 comments on commit 32da0d9

Please sign in to comment.