Package org.mozilla.geckoview
Class GeckoSession.ScrollPositionUpdate
Object
org.mozilla.geckoview.GeckoSession.ScrollPositionUpdate
- Enclosing class:
- GeckoSession
Information about an update to the content's scroll position.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatThe new horizontal scroll position in CSS pixels.floatThe new vertical scroll position in CSS pixels.intThe source of the scroll position change.static final intThe scroll position changed progammatically.static final intThe scroll position changed as a direct result of user interaction.floatThe new zoom level. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SOURCE_USER_INTERACTION
public static final int SOURCE_USER_INTERACTIONThe scroll position changed as a direct result of user interaction.- See Also:
-
SOURCE_OTHER
public static final int SOURCE_OTHERThe scroll position changed progammatically. This can include changes caused by script on the page, and changes caused by the browser engine such as scrolling an element into view.- See Also:
-
scrollX
public float scrollXThe new horizontal scroll position in CSS pixels. -
scrollY
public float scrollYThe new vertical scroll position in CSS pixels. -
zoom
public float zoomThe new zoom level. This is used to relate scrollX and scrollY, which are in CSS pixels, to quantities in screen pixels. Multiply scrollX/scrollY by zoom to get screen pixels. -
source
public int sourceThe source of the scroll position change. One of SOURCE_USER_INTERACTION or SOURCE_OTHER.
-
-
Constructor Details
-
ScrollPositionUpdate
public ScrollPositionUpdate()
-