mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix selecting in expanded down dropdown.
This commit is contained in:
parent
3f0fed19d8
commit
ebe45f3fa1
1 changed files with 1 additions and 2 deletions
|
@ -470,8 +470,7 @@ ClickHandlerPtr Manager::computeButtonLink(QPoint position) const {
|
|||
const auto top = _button->expandUp()
|
||||
? (inner.y() + inner.height() - position.y())
|
||||
: (position.y() - inner.y());
|
||||
const auto scroll = _button->scroll();
|
||||
const auto shifted = top + scroll * (_button->expandUp() ? 1 : -1);
|
||||
const auto shifted = top + _button->scroll();
|
||||
const auto between = st::reactionCornerSkip;
|
||||
const auto oneHeight = (st::reactionCornerSize.height() + between);
|
||||
const auto index = std::clamp(
|
||||
|
|
Loading…
Add table
Reference in a new issue