mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix selecting in expanded down dropdown.
This commit is contained in:
@@ -470,8 +470,7 @@ ClickHandlerPtr Manager::computeButtonLink(QPoint position) const {
|
|||||||
const auto top = _button->expandUp()
|
const auto top = _button->expandUp()
|
||||||
? (inner.y() + inner.height() - position.y())
|
? (inner.y() + inner.height() - position.y())
|
||||||
: (position.y() - inner.y());
|
: (position.y() - inner.y());
|
||||||
const auto scroll = _button->scroll();
|
const auto shifted = top + _button->scroll();
|
||||||
const auto shifted = top + scroll * (_button->expandUp() ? 1 : -1);
|
|
||||||
const auto between = st::reactionCornerSkip;
|
const auto between = st::reactionCornerSkip;
|
||||||
const auto oneHeight = (st::reactionCornerSize.height() + between);
|
const auto oneHeight = (st::reactionCornerSize.height() + between);
|
||||||
const auto index = std::clamp(
|
const auto index = std::clamp(
|
||||||
|
Reference in New Issue
Block a user