Handbook
Glossary
drag-loc ( -- loc )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
UI gestures
»
Mouse gestures
Prev:
hand-click-rel ( gadget -- loc )
Next:
mouse-scroll
Vocabulary
ui
.
gestures
Inputs
None
Outputs
loc
a pair of integers
Word description
Outputs the distance travelled by the mouse since the most recent press. Only meaningful inside a
drag
gesture handler.
Definition
USING:
math.vectors
namespaces
;
IN:
ui.gestures
:
drag-loc
( -- loc )
hand-loc
get-global
hand-click-loc
get-global
v-
;