mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Tweak user card hover trigger
So that it doesn’t appear when hovering over badges
This commit is contained in:
parent
c241d5fd0a
commit
14ef04f45f
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user