thumbPosition

Specifies the current position of a scrollbar draggable scrollbar thumb.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the thumbPosition of scrollbar to number

# Examples

set the thumbPosition of scrollbar 1 to 400

set the thumbPosition of me to (3 * the thumbSize of me)

# Description

Use the thumbPosition to move a scrollbar draggable scrollbar thumb when the content it controls is scrolled, or to check where the scrollbar thumb has been dragged in order to scroll the content.

The thumbPosition is the location of the top edge (for vertical scrollbars) or left edge (for horizontal scrollbars) of the scrollbar thumb, using the scale set by the scrollbar startPosition and endPosition properties.

If the style of the scrollbar is scale, the maximim thumbPosition, when the scrollbar thumb is all the way to the bottom (for a vertical scrollbar) or right (for a horizontal scrollbar), is the endValue.

If the style of the scrollbar is scrollbar or progress, the maximum value of the thumbPosition is the scrollbar endValue minus the thumbSize.

# Tags

ui,

# See

- **keyword:** scrollbar, default - **property:** endValue, properties, thumbSize, startValue - **message:** scrollbarLineInc, scrollbarBeginning - **object:** scrollbar - **glossary:** control, scrollbar thumb, property