myTextArea1 debugZone

WITH CHROME AND EDGE

1°) select "bcd" => 2 : OK

2°) click before "e" => 8 : OK

3°) select "bcd" => 2 : OK

4°) click before "c" => 2 : KO, it should be 4

5°) click again before "c" => 4 : OK

How can I reset the selectionStart when I click inside the current selection like in FIREFOX ?

The script is :

document.getElementById('myTextArea1').onclick=function(e){
 var dz=document.getElementById('debugZone');
 dz.innerHTML='';
 var t='<span style="font-size:0.5em;">'+(parseInt(performance.now()*10,10)/10)+'</span><br />';
 t+='<span style="font-size:2rem;">'+this.selectionStart+'</span>';
 dz.innerHTML=t;
}