Handling Overloaded Gestures
AssigneeFacebook, Inc.
InventorBrian D. I. Amerige
Life of this patent
Estimating the term…
Abstract
In one embodiment, a method includes receiving a touch input within a particular region of a display area of the computing device. The display area presents a user interface (UI) including a number of views and an outside view. Each of the views corresponds to one or more regions of the display area. One or more of the views has a gesture recognizer configured to process a touch input detected within the regions of the display area associated with each of the views. The outside view has a gesture recognizer configured to process the touch input detected within the display area. The views are organized in a hierarchy. The method also includes determining whether a particular one of the views from among the views is set as a modal view.
Claims20
A method comprising:
- by a computing device, receiving a touch input within a particular region of a display area of the computing device, the display area presenting a user interface (UI) comprising a plurality of views and an outside view, each of the views corresponding to one or more regions of the display area, one or more of the views having a gesture recognizer configured to process a touch input detected within the regions of the display area associated with each of the views, the outside view having a gesture recognizer configured to process the touch input detected within the display area, the views being organized in a hierarchy;
- by the computing device, determining whether a particular one of the views from among the plurality of views is set as a modal view;
- by the computing device, retargeting the gesture recognizer associated with the particular view to the gesture recognizer associated with the outside view in response to determining the particular view is set as the modal view;
- by the computing device, preventing the gesture recognizers of one or more non-modal views from processing the touch input within the particular region in response to a presence of the modal view;
- and
- by the computing device, processing the touch input within the particular region through the gesture recognizer associated with the modal view in response to the presence of the modal view.
One or more computer-readable non-transitory storage media embodying software configured when executed to:
- receive a touch input within a particular region of a display area of a computing device, the display area presenting a user interface (UI) comprising a plurality of views and an outside view, each of the views corresponding to one or more regions of the display area, one or more of the views having a gesture recognizer configured to process a touch input detected within the regions of the display area associated with each of the views, the outside view having a gesture recognizer configured to process the touch input detected within the display area, the views being organized in a hierarchy;
- determine whether a particular one of the views from among the plurality of views is set as a modal view;
- retarget the gesture recognizer associated with the particular view to the gesture recognizer associated with the outside view in response to determining the particular view is set as the modal view;
- prevent the gesture recognizers of one or more non-modal views from processing the touch input within the particular region in response to a presence of the modal view;
- and
- process the touch input within the particular region through the gesture recognizer associated with the modal view in response to the presence of the modal view.
A device comprising:
- a processor;
- and
- one or more computer-readable non-transitory storage media coupled to the processor and embodying software that:
- receive a touch input within a particular region of a display area of the device, the display area presenting a user interface (UI) comprising a plurality of views and an outside view, each of the views corresponding to one or more regions of the display area, one or more of the views having a gesture recognizer configured to process a touch input detected within the regions of the display area associated with each of the views, the outside view having a gesture recognizer configured to process the touch input detected within the display area, the views being organized in a hierarchy;
- determine whether a particular one of the views from among the plurality of views is set as a modal view;
- retarget the gesture recognizer associated with the particular view to the gesture recognizer associated with the outside view in response to determining the particular view is set as the modal view;
- prevent the gesture recognizers of one or more non-modal views from processing the touch input within the particular region in response to a presence of the modal view;
- and
- process the touch input within the particular region through the gesture recognizer associated with the modal view in response to the presence of the modal view.
Dependencies are inferred from the claim text.