Make gestures work with multiple windows.

Add guards in gestures classes to check that the touch belongs to the right view.