Skip to content

Commit

Permalink
Make sure caption items can only be interacted if not in video fullsc…
Browse files Browse the repository at this point in the history
…reen.
  • Loading branch information
davidholio authored Feb 24, 2025
1 parent 6f23010 commit 06bf413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6102,7 +6102,7 @@ void OverlayWidget::updateOver(QPoint pos) {
auto textState = _saveMsgText.getState(pos - _saveMsg.topLeft() - QPoint(st::mediaviewSaveMsgPadding.left(), st::mediaviewSaveMsgPadding.top()), _saveMsg.width() - st::mediaviewSaveMsgPadding.left() - st::mediaviewSaveMsgPadding.right());
lnk = textState.link;
lnkhost = this;
} else if (_captionRect.contains(pos)) {
} else if (_captionRect.contains(pos) && !_fullScreenVideo) {
auto request = Ui::Text::StateRequestElided();
const auto lineHeight = st::mediaviewCaptionStyle.font->height;
request.lines = _captionRect.height() / lineHeight;
Expand Down

0 comments on commit 06bf413

Please sign in to comment.