Moved processDrag function to end of the group of mouse/touch handling functions for neater flow.

Also, some minor whitespace tidy-ups.