fling

package
v0.1.94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation struct {
	// contains filtered or unexported fields
}

func (*Animation) Active

func (f *Animation) Active() bool

func (*Animation) Start

func (f *Animation) Start(c unit.Metric, now time.Time, velocity float32) bool

Start a fling given a starting velocity. Returns whether a fling was started.

func (*Animation) Tick

func (f *Animation) Tick(now time.Time) int

Tick computes and returns a fling distance since the last time Tick was called.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL