html5-tower-defense icon indicating copy to clipboard operation
html5-tower-defense copied to clipboard

mouse detection wrong if there're elements before <div id="wrapper">

Open by321 opened this issue 5 years ago • 0 comments

For example, if you add a line of text before <div id="wrapper">:

<body id="tower-defense"> a line of text <div id="wrapper">

then within the canvas, mouse detection would be off by the height of text. I assume the same problem exists in x-direction too.

by321 avatar Mar 16 '19 20:03 by321