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
417 stars 125 forks source link

Snapback support #6

Open beriberikix opened 11 years ago

beriberikix commented 11 years ago

Right now, when touchEnd fires, the joystick disappears. It would be great if there was an option to have the joystick slowly snapback to the neutral position.

jeromeetienne commented 11 years ago

you mean in the display of the joystick or the values ?

beriberikix commented 11 years ago

Both actually. Instead of display:none & resetting to 0, a little tweening would be awesome.