I have the following annoying problem: When clicking multiple times on empty spaces in my website, it selects entire rows and paragraphs, as demonstrated by this fiddle.
But since there is no text under the cursor (e.g. the empty green region), I don't even understand why it would want to select anything in the first place.
Simply put: If I click on text, I want default selection behavior, but if I do not click on text, it should not select anything. Is that possible?
Reference HTML code:
<div>
<span>Clicks:</span> <input id="clicks" value="0"></input>
<div style="background-color:LightGreen"
onclick="$('#clicks').val(parseInt($('#clicks').val()) + 1);"><span class="hard">CLICK THE GREEN AND CLICK IT HARD!</span>
<br/>
<img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcS5lQfEXNPKzMGZRHUQJJJj97NFoi1Q4iZ_dT1GK9lrYsjrgd7i5XWsrTA"></img>
<div style="width: 100%; display:inline-block"><span>more text</span></div>
</div>
<span>even more text</span>
<p id="log"></p>
</div>