Tweak user card hover trigger

So that it doesn’t appear when hovering over badges
This commit is contained in:
Toby Zerner 2015-05-06 12:23:48 +09:30
parent c241d5fd0a
commit 14ef04f45f

View File

@ -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() {