some bug fixes

fixed bug when input doesn't exist
added touch events - untested
changed classname when sliding to sliding
check if sliding before updating input location