| | |
- DragWatcher
class DragWatcher |
| |
Class providing semantics for fractional and absolute dragging
With this class you can track the start position of a drag action
and query for both absolute distance dragged, and distance as a
fraction of the distance to the edges of the window. |
| |
- __init__(self, startX, startY, totalX, totalY)
- distances(self, newX, newY)
- Calculate absolute distances from start point
- fractions(self, newX, newY)
- Calculate fractional delta from the start point
| |