jeromeetienne / virtualjoystick.js

a virtual joystick library to emulate a joystick on touch screen in javascript
http://jeromeetienne.github.com/virtualjoystick.js/examples/basic.html
MIT License
419 stars 125 forks source link

Wrong coordinates when placing other DOM elements before the container element #8

Open bes89 opened 11 years ago

bes89 commented 11 years ago

I think it is not a special case when inserting some DOM elements before the container element, for instance:

<body>
<h1>My Game!</h1>
<p>A very short description ....</p>
<div id="container"></div>
....
</body>

but when you do this the position of the stick is wrong.