Class GeckoSession.ScrollPositionUpdate

Object
org.mozilla.geckoview.GeckoSession.ScrollPositionUpdate
Enclosing class:
GeckoSession

public class GeckoSession.ScrollPositionUpdate extends Object
Information about an update to the content's scroll position.
  • Field Details

    • SOURCE_USER_INTERACTION

      public static final int SOURCE_USER_INTERACTION
      The scroll position changed as a direct result of user interaction.
      See Also:
    • SOURCE_OTHER

      public static final int SOURCE_OTHER
      The 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 scrollX
      The new horizontal scroll position in CSS pixels.
    • scrollY

      public float scrollY
      The new vertical scroll position in CSS pixels.
    • zoom

      public float zoom
      The 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 source
      The source of the scroll position change. One of SOURCE_USER_INTERACTION or SOURCE_OTHER.
  • Constructor Details

    • ScrollPositionUpdate

      public ScrollPositionUpdate()