This is the code http://jsbin.com/opevow/64/edit
You can edit it and press top left corner to test.
Only the “down” function works.
The “left” is moving to left side but then moving to top..
Other doesn’t work at all…(keep slibing in place…). I was nearly collapsed..
I think click 4 boxes at the same time will cause strange problem,so you can edit this code and test a single box.
Thank you cordially
looks like you forget to break your switch statement.