T
T
TANK_IST2015-06-21 15:55:55
css
TANK_IST, 2015-06-21 15:55:55

How to update the cursor in the browser when the blocks under the cursor are updated but the cursor is still?

Actually, here is an example jsfiddle.net/w1r9tvqx
If you hover over a gray square, it changes color.
If you hover over a small square, the cursor will become a pointer and the color of the large square will become the same.
Click on the square and it will disappear BUT the cursor will not change and the color of the big block will not change either.
If you already move the cursor or click, then everything will be fine.
Here is such a bug.
How can it be fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pretor DH, 2015-06-21
@TANK_IST

In such cases Z-index won't help...
Small square should be removed completely either via fadeOut or callback...

$('div').click(function(){
    $('div').fadeOut(200)
});
$('div').click(function(){
    $(this).css({opacity: 0},function(){$(this).css({'display':'none'});})
});

A
Andrey Andreev, 2015-06-21
@b0nn1e

$('div').click(function(){
    $('div').hide(400);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question