Procs
proc onDrag(moved: (Vec2[float] -> void)): Behavior {...}{. raises: [Exception, UnpackError], tags: [RootEffect].}
proc onDragAbsolute(moved: (Vec2[float] -> void)): Behavior {...}{. raises: [Exception, UnpackError], tags: [RootEffect].}
- Like onDrag, but gives the position of the pointer instead of the vectored it has moved since the last frame.