Override mouse position when clicking on user in userlist to open dropdown at correct position
This commit is contained in:
parent
ee7272305a
commit
81e1d15ee9
@ -103,7 +103,11 @@ exports.handleKeybinds = function(input) {
|
|||||||
const user = input.closest(".users").find(".user.active");
|
const user = input.closest(".users").find(".user.active");
|
||||||
|
|
||||||
if (user.length) {
|
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 New Issue
Block a user