1. A method, comprising: in response to a pinch event generated during execution of an application, the application comprising one or more user interface layers arranged in a navigation hierarchy: determining an application layer corresponding to the pinch event; closing the application if the determined application layer is a root layer of the navigation hierarchy; and closing the determined layer and navigating to a parent layer of the determined layer in the navigation hierarchy if the determined layer is not the root layer.