Let's say I have an SVG element
SVGArea
And after it I have an img div containing an Icon
IconImg
The structure is like :
<div id="svgArea">
<svg>
#SOMETHING
</svg>
<div id="imgIcon">
<img src={IconImg} >
</img>
</div>
</div>
On click, the Icon image is placed somewhere in the SVG (according to computed w and y positions).
The problem : the Icon moves each time I scroll up or down or I zoom in/out. The element doesn't seem to stay fixed or sticky. And I have trid all what I have found in internet :
#IconImg{top:0; position:sticky // or fixed}
#SVGArea{position : relative}
And there is no parent with hidden-flow attribute.
How can I fix that I have my Icon stay in place what ever the scrool or zoom ? Thank you for you thoughts and answers for help.