public static class PanZoomController.InputResultDetail extends Object
MotionEvent
was handled in Gecko.
This value can be used by browser apps to implement features like pull-to-refresh. Failing
to account this value might break some websites expectations about touch events.
For example, a handledResult()
value of
PanZoomController.INPUT_RESULT_HANDLED
and
overscrollDirections()
of
PanZoomController.OVERSCROLL_FLAG_NONE
indicates that the event was consumed for a panning
or zooming operation and that the website does not expect the browser to react to the touch
event (say, by triggering the pull-to-refresh feature) even though the scroll container reached
to the edge.Modifier | Constructor and Description |
---|---|
protected |
InputResultDetail(int handledResult,
int scrollableDirections,
int overscrollDirections) |
Modifier and Type | Method and Description |
---|---|
int |
handledResult() |
int |
overscrollDirections() |
int |
scrollableDirections() |
protected InputResultDetail(int handledResult, int scrollableDirections, int overscrollDirections)
@AnyThread public int handledResult()
INPUT_RESULT_*
indicating how
the event was handled.@AnyThread public int scrollableDirections()
SCROLLABLE_FLAG_*
indicating which
directions can be scrollable.@AnyThread public int overscrollDirections()
OVERSCROLL_FLAG_*
indicating which
directions can be over-scrollable.