scrollerDidScroll

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
scrollerDidScroll <pHScroll>, <pVScroll>
Summary

Sent when the properties of a scroller have changed.

Introduced4.5.3
OSios, android
Platformsmobile
Parameters
NameTypeDescription
pHScroll

The horizontal scroll of an iOS scroller control.

pVScroll

The vertical scroll of an iOS scroller control.

Example
on scrollerDidScroll pHScroll, pVScroll
   put "Scrolled to" && pHScroll \
         & comma & pVScroll into field "scroller status"
end scrollerDidScroll
RelatedCommand: mobileControlCreate, mobileControlDelete, mobileControlSet
Function: mobileControlGet, mobileControlTarget, mobileControls
Message: scrollerEndDecelerate, scrollerBeginDecelerate, scrollerBeginDrag, scrollerEndDrag, scrollerScrollToTop
Description

The scrollerDidScroll message is sent when the scroll properties of a scroller control created using the mobileControlCreate command change.

Handle the scrollerDidScroll message if you want to move LiveCode controls, make changes to the interface or set the appropriate scroll properties of groups and fields to get a native scrolling effect.

The scrollerDidScroll message is sent to the object containing the script that created the scroller control.