Fix selecting in expanded down dropdown.

This commit is contained in:
John Preston 2022-01-06 15:35:06 +03:00
parent 3f0fed19d8
commit ebe45f3fa1
1 changed files with 1 additions and 2 deletions

View File

@ -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(