SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.horzWheelDelta  property

The number of unit pixels which are moved horizontally if move the mouse wheel when vertical scroll is unnecessary and horizontal scroll is enabled. 

If specify as 0, wheel scroll will be disabled. If specify as a negative value, it will be scrolled away from the system setting. If vertical scroll is enabled, it will always be scrolled vertically according to the setting specified in wheelDelta regardless of this value. 

Defaults to 16.

Getter
function horzWheelDelta(): Integer
Setter
function setHorzWheelDelta(value: Integer)
Code -1
    grid.setOptions({
        display: {
            hintDuration: 10,
            horzWheelDelta: 10
        }
    });
Code -2
    grid.setDisplayOptions({
        hintDuration: 10,
        horzWheelDelta: 10
    });
Code -3
    grid.displayOptions().setHorzWheelDelta(10);
See Also
wheelDelta
bubbleWheelEvents
examples
Scroll Bar