Use container view to recognize pans