From 14ef04f45f42dff0860f697591a6f156d3142a6f Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 6 May 2015 12:23:48 +0930 Subject: [PATCH] Tweak user card hover trigger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So that it doesn’t appear when hovering over badges --- framework/core/js/forum/src/components/post-header-user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/js/forum/src/components/post-header-user.js b/framework/core/js/forum/src/components/post-header-user.js index 6627dc746..7989c101b 100644 --- a/framework/core/js/forum/src/components/post-header-user.js +++ b/framework/core/js/forum/src/components/post-header-user.js @@ -44,14 +44,14 @@ export default class PostHeaderUser extends Component { var component = this; var timeout; - this.$().bind('mouseover', '> a, .user-card', function() { + this.$().on('mouseover', 'h3 a, .user-card', function() { clearTimeout(timeout); timeout = setTimeout(function() { component.showCard(true); m.redraw(); setTimeout(() => component.$('.user-card').addClass('in')); }, 500); - }).bind('mouseout', '> a, .user-card', function() { + }).on('mouseout', 'h3 a, .user-card', function() { clearTimeout(timeout); timeout = setTimeout(function() { component.$('.user-card').removeClass('in').one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function() {