Table of Contents

Method Drag

Namespace
GrindFest
Assembly
GrindFest.dll

Drag(VisualElement, float, float, int)

Drag across an element (used by the onejs-comps Slider: it needs down -> move* -> up, and captures the pointer on down, so the same pointerId has to be reused). fromT / toT are 0..1 across its width.

public static void Drag(VisualElement track, float fromT, float toT, int steps = 8)

Parameters

track VisualElement
fromT float
toT float
steps int