Fix vertical movement on gracefulControls.js