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

get correct coordinates for the base and stick element #9

Open bes89 opened 11 years ago

bes89 commented 11 years ago

this is a fix for PR #8

kevcmk commented 11 years ago

This is working when the page is at the scroll-origin. However, it looks like the base/stick elements always render relative the top of the page.

By the way, thanks for the software!

jeromeetienne commented 11 years ago

honnestly it slipped my mind

bes89 commented 11 years ago

i just fixed another issue. now it should work correctly

mavkci commented 6 years ago

I have a problem still here. If I move container from the top for example 100px, my joystick is also moved from my mouse pointer for that 100px.. :(