I have drawn a picture in canvas and paint some points according to user mouse clicks. I Used mathematical calculation in order to show some panel names in picture once user hover over as tool tips. I use canvas coordinates and scales percentages. My problem is when i re-size window to smaller window (I used Mozilla responsive mode Mobile device) the it gives wrong coordinates.
Actual size of canvas is - 460 ,550 In mobile window mode it is around 250,350
I have used following style
#splatExteriorImage {
background-image: url(../images/SPLAT1.jpg);
background-size: cover;
z-index: 0;
background-color: #F5F5F5;
}
How can i re-size canvas without reducing its coordinates. Thanks In Advance,
canvastag? Please post your HTML. - Brian