Fixed gestures handling: Added pointer capture.