mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
emoji_picker: Fix hover behavior to key off entire emoji.
Previously, you had to hover over the smaller area where the emoji image was to select it, whereas the user expectation is that hovering the emoji's padding should select it as well.
This commit is contained in:
@@ -718,9 +718,8 @@ exports.register_click_handlers = function () {
|
||||
reset_emoji_showcase();
|
||||
});
|
||||
|
||||
$("body").on("mouseenter", ".emoji-popover-emoji .emoji", function () {
|
||||
var hovered_emoji = $(this).parent();
|
||||
var emoji_id = hovered_emoji.data("emoji-id");
|
||||
$("body").on("mouseenter", ".emoji-popover-emoji", function () {
|
||||
var emoji_id = $(this).data("emoji-id");
|
||||
var emoji_coordinates = get_emoji_coordinates(emoji_id);
|
||||
|
||||
may_be_change_focused_emoji(emoji_coordinates.section, emoji_coordinates.index);
|
||||
|
||||
Reference in New Issue
Block a user