I'm running a click event when I clicked the ball. But sometime click doesn't work, I'm selecting image accidently and it stops click event..
I tried to remove selectable property with below css properties, but doesn't work
pointer-events: none; // it stops click event, selecting continue
user-select: none; // it doesn't change anything
element and css
#ball {
height: 100px;
position: absolute;
bottom: 10px;
left: 50%;
}
<img id="ball" src="images/ball.png"/>
How can I make it image not selectable ?