Added boundary checking for touch screen movement and behind 3D view.

Signed-off-by: jawillia <jawawilliams@gmail.com>