Patches

Scroll Settings

Scroll Settings

Customize a Scroll patch’s behavior.

Scroll Settings

  • Content Size
  • Direction Locking
  • Page Size
  • Page Padding
  • Jump Style X
  • Jump to X
  • Jump Position X
  • Jump Style Y
  • Jump to Y
  • Jump Position Y
  •  

Content Size

The width and height of the layer to be scrolled. Defaults to the size of the layer selected in the accompanying Scroll patch.

Direction Locking

A boolean that is true when scrolling is locked to the initial direction a user scrolls it per touch.

Page Size

The width and/or height of a page when the Scroll patch is set to Paging. The page will be centered in the bounds. Only needs to be defined in the axis that the Scroll patch is paging (ex: only page width is required for a Paging X Scroll). Ensure the layer being scrolled is divisible by the page size and padding.

Page Padding

The padding between each page when the Scroll patch is set to Paging. Only needs to be defined in the axis that the Scroll patch is paging (ex: only padding width is required for a Paging X Scroll).

Jump Style X

The jump style (animated or instant) when jumping horizontally.

Jump to X

A pulse that jumps the Scroll X position.

Jump Position X

The X position to jump to.

Jump Style Y

The jump style (animated or instant) when jumping vertically.

Jump to Y

A pulse that jumps the Scroll Y position.

Jump Position Y

The Y position to jump to.

Output

The settings to pass to a Scroll patch.