Custom scroll view subclass used in the stack and page view controllers