Skip to main content
Version: 0.20.3

scroll

production

Scrolls based on the current mouse position in the x and y direction.

Important: Mouse must be positioned in a scrollable area.

macOS: May not work as expected!

Example:

// Scroll 500 pixels down in y direction
await aui.scroll(0, -500).exec()

  • @param {number} x_offset - A (positive/negative) x direction.
  • @param {number} y_offset - A (positive/negative) y direction.