mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Override mouse position when clicking on user in userlist to open dropdown at correct position
This commit is contained in:
parent
ee7272305a
commit
81e1d15ee9
1 changed files with 5 additions and 1 deletions
|
@ -103,7 +103,11 @@ exports.handleKeybinds = function(input) {
|
|||
const user = input.closest(".users").find(".user.active");
|
||||
|
||||
if (user.length) {
|
||||
user.click();
|
||||
const clickEvent = new $.Event("click");
|
||||
const userOffset = user.offset();
|
||||
clickEvent.pageX = userOffset.left;
|
||||
clickEvent.pageY = userOffset.top + user.height();
|
||||
user.trigger(clickEvent);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue