mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 16:35:44 +00:00
Show reaction button only when the cursor is over the message.
This commit is contained in:
@@ -1869,7 +1869,7 @@ Reactions::ButtonParameters Message::reactionButtonParameters(
|
|||||||
+ st::reactionCornerCenter));
|
+ st::reactionCornerCenter));
|
||||||
if (reactionState.itemId != result.context) {
|
if (reactionState.itemId != result.context) {
|
||||||
const auto top = marginTop();
|
const auto top = marginTop();
|
||||||
if (!QRect(0, top, width(), height() - top).contains(position)) {
|
if (!contentRect.contains(position)) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user