mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Make sure caption items can only be interacted if not in video fullscreen.
This commit is contained in:
parent
ec6862d31a
commit
4df90cfb9e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue