TK.ScrollValue

new ScrollValue()

TK.ScrollValue enables the scroll wheel for setting a value of an object. For instance, it is used by TK.Knob to allow turning the knob using the scroll wheel.

Properties:
Name Type Attributes Default Description
get function <optional>
function () { return; }

Callback returning the value.

set function <optional>
function () { return; }

Callback setting the value.

range function <optional>
function () { return {}; }

A TK.Range instance.

events Object <optional>
false

Element receiving events or false to fire events on the main element.

classes Object <optional>
false

Element receiving classes or false to set classes on the main element.

node HTMLElement <optional>
false

The element receiving the scroll event.

active Boolean <optional>
true

Disable the scroll event.

Source:

Extends

  • TK.Module

Events

scrollended

Is fired when scrolling ended.

Source:

scrolling

Is fired while scrolling happens.

Parameters:
Name Type Description
event DOMEvent

The native DOM event.

Source:

scrollstarted

Is fired when scrolling starts.

Parameters:
Name Type Description
event DOMEvent

The native DOM event.

Source: