[refactor] move snap-back transformation code out of function definition
[feat] apply draggability and snap-back to tasks