mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fix ripples in channel comments buttons.
This commit is contained in:
parent
49c9e08b6c
commit
fe73bf9053
1 changed files with 20 additions and 20 deletions
|
@ -1843,8 +1843,11 @@ void Message::clickHandlerPressedChanged(
|
||||||
Element::clickHandlerPressedChanged(handler, pressed);
|
Element::clickHandlerPressedChanged(handler, pressed);
|
||||||
if (!handler) {
|
if (!handler) {
|
||||||
return;
|
return;
|
||||||
} else if (_rightAction) {
|
} else if (_rightAction && (handler == _rightAction->link)) {
|
||||||
if (_rightAction->second && (handler == _rightAction->second->link)) {
|
toggleRightActionRipple(pressed);
|
||||||
|
} else if (_rightAction
|
||||||
|
&& _rightAction->second
|
||||||
|
&& (handler == _rightAction->second->link)) {
|
||||||
const auto rightSize = rightActionSize();
|
const auto rightSize = rightActionSize();
|
||||||
Assert(rightSize != std::nullopt);
|
Assert(rightSize != std::nullopt);
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
|
@ -1862,9 +1865,6 @@ void Message::clickHandlerPressedChanged(
|
||||||
} else if (_rightAction->second->ripple) {
|
} else if (_rightAction->second->ripple) {
|
||||||
_rightAction->second->ripple->lastStop();
|
_rightAction->second->ripple->lastStop();
|
||||||
}
|
}
|
||||||
} else if (handler == _rightAction->link) {
|
|
||||||
toggleRightActionRipple(pressed);
|
|
||||||
}
|
|
||||||
} else if (_comments && (handler == _comments->link)) {
|
} else if (_comments && (handler == _comments->link)) {
|
||||||
toggleCommentsButtonRipple(pressed);
|
toggleCommentsButtonRipple(pressed);
|
||||||
} else if (_topicButton && (handler == _topicButton->link)) {
|
} else if (_topicButton && (handler == _topicButton->link)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue