Slider and Scroll Events

Event Name

Components

Description

onScroll

slider

Event: org.zkoss.zk.ui.event.ScrollEvent

Denotes the content of a scrollable component has been scrolled by the user.

onScrolling

slider

Event: org.zkoss.zk.ui.event.ScrollEvent

Denotes that user is scrolling a scrollable component. Notice that the component's content (at the server) won't be changed until onScroll is received. Thus, you have to invoke the getPos method in the ScrollEvent class to retrieve the temporary position.