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:
Tim Abbott
2017-10-05 09:11:03 -07:00
parent b8c58cc830
commit bcbe41177a

View File

@@ -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);