Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/view
MouseMomentumGesture
Class MouseMomentumGesture<V>
Type parameters
V
:
View
Hierarchy
AbstractMomentumGesture
<
V
>
MouseMomentumGesture
Index
Constructors
constructor
Properties
coast
Count
delegate
hover
Count
input
Count
inputs
press
Count
view
Acceleration
Hysteresis
Velocity
Max
Accessors
acceleration
hysteresis
velocity
Max
Methods
attach
Events
attach
Hover
Events
attach
Press
Events
begin
Coast
begin
Hover
begin
Press
cancel
cancel
Press
clear
Input
create
Input
detach
Events
detach
Hover
Events
detach
Press
Events
did
Begin
Coast
did
Begin
Hover
did
Begin
Press
did
Cancel
Press
did
Coast
did
End
Coast
did
End
Hover
did
End
Press
did
Long
Press
did
Move
Press
did
Press
did
Start
Coasting
did
Start
Hovering
did
Start
Interacting
did
Start
Pressing
did
Stop
Coasting
did
Stop
Hovering
did
Stop
Interacting
did
Stop
Pressing
do
Coast
end
Coast
end
Hover
end
Press
get
Input
get
OrCreate
Input
init
View
integrate
interrupt
is
Coasting
is
Hovering
is
Pressing
long
Press
move
Press
on
Begin
Coast
on
Begin
Hover
on
Begin
Press
on
Cancel
Press
on
Coast
on
End
Coast
on
End
Hover
on
End
Press
on
Long
Press
on
Mouse
Down
on
Mouse
Enter
on
Mouse
Leave
on
Mouse
Leave
Document
on
Mouse
Move
on
Mouse
Up
on
Move
Press
on
Press
on
Start
Coasting
on
Start
Hovering
on
Start
Interacting
on
Start
Pressing
on
Stop
Coasting
on
Stop
Hovering
on
Stop
Interacting
on
Stop
Pressing
press
set
Delegate
set
View
start
Coasting
start
Hovering
start
Interacting
start
Pressing
stop
Coasting
stop
Hovering
stop
Interacting
stop
Pressing
update
Input
view
Did
Mount
view
Will
Animate
view
Will
Unmount
will
Begin
Coast
will
Begin
Hover
will
Begin
Press
will
Cancel
Press
will
Coast
will
End
Coast
will
End
Hover
will
End
Press
will
Long
Press
will
Move
Press
will
Press
will
Start
Coasting
will
Start
Hovering
will
Start
Interacting
will
Start
Pressing
will
Stop
Coasting
will
Stop
Hovering
will
Stop
Interacting
will
Stop
Pressing
Constructors
constructor
new
Mouse
Momentum
Gesture<V>
(
view
:
null
|
V
, delegate
?:
null
|
MomentumGestureDelegate
)
:
MouseMomentumGesture
<
V
>
Type parameters
V
:
View
<
V
>
Parameters
view:
null
|
V
Optional
delegate:
null
|
MomentumGestureDelegate
Returns
MouseMomentumGesture
<
V
>
Properties
Readonly
coast
Count
coast
Count
:
number
Readonly
delegate
delegate
:
null
|
MomentumGestureDelegate
Readonly
hover
Count
hover
Count
:
number
Readonly
input
Count
input
Count
:
number
Readonly
inputs
inputs
:
{}
Type declaration
[
inputId:
string
]:
MomentumGestureInput
|
undefined
Readonly
press
Count
press
Count
:
number
Readonly
view
view
:
null
|
V
Static
Acceleration
Acceleration
:
number
Static
Hysteresis
Hysteresis
:
number
Static
Velocity
Max
Velocity
Max
:
number
Accessors
Protected
acceleration
get
acceleration
(
)
:
number
Returns
number
Protected
hysteresis
get
hysteresis
(
)
:
number
Returns
number
Protected
velocity
Max
get
velocityMax
(
)
:
number
Returns
number
Methods
Protected
attach
Events
attach
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
attach
Hover
Events
attach
Hover
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
attach
Press
Events
attach
Press
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
begin
Coast
begin
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
begin
Hover
begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
begin
Press
begin
Press
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
cancel
cancel
(
event
:
null
|
Event
)
:
void
Parameters
event:
null
|
Event
Returns
void
cancel
Press
cancel
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
clear
Input
clear
Input
(
input
:
MomentumGestureInput
)
:
void
Parameters
input:
MomentumGestureInput
Returns
void
Protected
create
Input
create
Input
(
inputId
:
string
, inputType
:
GestureInputType
, isPrimary
:
boolean
, x
:
number
, y
:
number
, t
:
number
)
:
MomentumGestureInput
Parameters
inputId:
string
inputType:
GestureInputType
isPrimary:
boolean
x:
number
y:
number
t:
number
Returns
MomentumGestureInput
Protected
detach
Events
detach
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
detach
Hover
Events
detach
Hover
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
detach
Press
Events
detach
Press
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
did
Begin
Coast
did
Begin
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
did
Begin
Hover
did
Begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Begin
Press
did
Begin
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Cancel
Press
did
Cancel
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Coast
did
Coast
(
)
:
void
Returns
void
Protected
did
End
Coast
did
End
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
did
End
Hover
did
End
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
End
Press
did
End
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Long
Press
did
Long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
Protected
did
Move
Press
did
Move
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Press
did
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Start
Coasting
did
Start
Coasting
(
)
:
void
Returns
void
Protected
did
Start
Hovering
did
Start
Hovering
(
)
:
void
Returns
void
Protected
did
Start
Interacting
did
Start
Interacting
(
)
:
void
Returns
void
Protected
did
Start
Pressing
did
Start
Pressing
(
)
:
void
Returns
void
Protected
did
Stop
Coasting
did
Stop
Coasting
(
)
:
void
Returns
void
Protected
did
Stop
Hovering
did
Stop
Hovering
(
)
:
void
Returns
void
Protected
did
Stop
Interacting
did
Stop
Interacting
(
)
:
void
Returns
void
Protected
did
Stop
Pressing
did
Stop
Pressing
(
)
:
void
Returns
void
Protected
do
Coast
do
Coast
(
t
:
number
)
:
void
Parameters
t:
number
Returns
void
end
Coast
end
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
end
Hover
end
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
end
Press
end
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
get
Input
get
Input
(
inputId
:
string
|
number
)
:
null
|
MomentumGestureInput
Parameters
inputId:
string
|
number
Returns
null
|
MomentumGestureInput
Protected
get
OrCreate
Input
get
OrCreate
Input
(
inputId
:
string
|
number
, inputType
:
GestureInputType
, isPrimary
:
boolean
, x
:
number
, y
:
number
, t
:
number
)
:
MomentumGestureInput
Parameters
inputId:
string
|
number
inputType:
GestureInputType
isPrimary:
boolean
x:
number
y:
number
t:
number
Returns
MomentumGestureInput
Protected
init
View
init
View
(
view
:
null
|
V
)
:
void
Parameters
view:
null
|
V
Returns
void
Protected
integrate
integrate
(
t
:
number
)
:
void
Parameters
t:
number
Returns
void
interrupt
interrupt
(
event
:
null
|
Event
)
:
void
Parameters
event:
null
|
Event
Returns
void
is
Coasting
is
Coasting
(
)
:
boolean
Returns
boolean
is
Hovering
is
Hovering
(
)
:
boolean
Returns
boolean
is
Pressing
is
Pressing
(
)
:
boolean
Returns
boolean
long
Press
long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
move
Press
move
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Begin
Coast
on
Begin
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
on
Begin
Hover
on
Begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Begin
Press
on
Begin
Press
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
on
Cancel
Press
on
Cancel
Press
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
on
Coast
on
Coast
(
)
:
void
Returns
void
Protected
on
End
Coast
on
End
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
on
End
Hover
on
End
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
End
Press
on
End
Press
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
on
Long
Press
on
Long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
Protected
on
Mouse
Down
on
Mouse
Down
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Protected
on
Mouse
Enter
on
Mouse
Enter
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Protected
on
Mouse
Leave
on
Mouse
Leave
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Protected
on
Mouse
Leave
Document
on
Mouse
Leave
Document
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Protected
on
Mouse
Move
on
Mouse
Move
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Protected
on
Mouse
Up
on
Mouse
Up
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Protected
on
Move
Press
on
Move
Press
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
on
Press
on
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Start
Coasting
on
Start
Coasting
(
)
:
void
Returns
void
Protected
on
Start
Hovering
on
Start
Hovering
(
)
:
void
Returns
void
Protected
on
Start
Interacting
on
Start
Interacting
(
)
:
void
Returns
void
Protected
on
Start
Pressing
on
Start
Pressing
(
)
:
void
Returns
void
Protected
on
Stop
Coasting
on
Stop
Coasting
(
)
:
void
Returns
void
Protected
on
Stop
Hovering
on
Stop
Hovering
(
)
:
void
Returns
void
Protected
on
Stop
Interacting
on
Stop
Interacting
(
)
:
void
Returns
void
Protected
on
Stop
Pressing
on
Stop
Pressing
(
)
:
void
Returns
void
press
press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
set
Delegate
set
Delegate
(
delegate
:
null
|
MomentumGestureDelegate
)
:
void
Parameters
delegate:
null
|
MomentumGestureDelegate
Returns
void
set
View
set
View
(
newView
:
null
|
V
)
:
void
Parameters
newView:
null
|
V
Returns
void
Protected
start
Coasting
start
Coasting
(
)
:
void
Returns
void
Protected
start
Hovering
start
Hovering
(
)
:
void
Returns
void
Protected
start
Interacting
start
Interacting
(
)
:
void
Returns
void
Protected
start
Pressing
start
Pressing
(
)
:
void
Returns
void
Protected
stop
Coasting
stop
Coasting
(
)
:
void
Returns
void
Protected
stop
Hovering
stop
Hovering
(
)
:
void
Returns
void
Protected
stop
Interacting
stop
Interacting
(
)
:
void
Returns
void
Protected
stop
Pressing
stop
Pressing
(
)
:
void
Returns
void
Protected
update
Input
update
Input
(
input
:
MomentumGestureInput
, event
:
MouseEvent
)
:
void
Parameters
input:
MomentumGestureInput
event:
MouseEvent
Returns
void
view
Did
Mount
view
Did
Mount
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
view
Will
Animate
view
Will
Animate
(
viewContext
:
ViewContext
)
:
void
Parameters
viewContext:
ViewContext
Returns
void
view
Will
Unmount
view
Will
Unmount
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
will
Begin
Coast
will
Begin
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
boolean
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
boolean
Protected
will
Begin
Hover
will
Begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Begin
Press
will
Begin
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
boolean
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
boolean
Protected
will
Cancel
Press
will
Cancel
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Coast
will
Coast
(
)
:
void
Returns
void
Protected
will
End
Coast
will
End
Coast
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
will
End
Hover
will
End
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
End
Press
will
End
Press
(
input
:
MomentumGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
MomentumGestureInput
event:
null
|
Event
Returns
void
Protected
will
Long
Press
will
Long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
Protected
will
Move
Press
will
Move
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Press
will
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Start
Coasting
will
Start
Coasting
(
)
:
void
Returns
void
Protected
will
Start
Hovering
will
Start
Hovering
(
)
:
void
Returns
void
Protected
will
Start
Interacting
will
Start
Interacting
(
)
:
void
Returns
void
Protected
will
Start
Pressing
will
Start
Pressing
(
)
:
void
Returns
void
Protected
will
Stop
Coasting
will
Stop
Coasting
(
)
:
void
Returns
void
Protected
will
Stop
Hovering
will
Stop
Hovering
(
)
:
void
Returns
void
Protected
will
Stop
Interacting
will
Stop
Interacting
(
)
:
void
Returns
void
Protected
will
Stop
Pressing
will
Stop
Pressing
(
)
:
void
Returns
void
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Mouse
Momentum
Gesture
constructor
coast
Count
delegate
hover
Count
input
Count
inputs
press
Count
view
Acceleration
Hysteresis
Velocity
Max
acceleration
hysteresis
velocity
Max
attach
Events
attach
Hover
Events
attach
Press
Events
begin
Coast
begin
Hover
begin
Press
cancel
cancel
Press
clear
Input
create
Input
detach
Events
detach
Hover
Events
detach
Press
Events
did
Begin
Coast
did
Begin
Hover
did
Begin
Press
did
Cancel
Press
did
Coast
did
End
Coast
did
End
Hover
did
End
Press
did
Long
Press
did
Move
Press
did
Press
did
Start
Coasting
did
Start
Hovering
did
Start
Interacting
did
Start
Pressing
did
Stop
Coasting
did
Stop
Hovering
did
Stop
Interacting
did
Stop
Pressing
do
Coast
end
Coast
end
Hover
end
Press
get
Input
get
OrCreate
Input
init
View
integrate
interrupt
is
Coasting
is
Hovering
is
Pressing
long
Press
move
Press
on
Begin
Coast
on
Begin
Hover
on
Begin
Press
on
Cancel
Press
on
Coast
on
End
Coast
on
End
Hover
on
End
Press
on
Long
Press
on
Mouse
Down
on
Mouse
Enter
on
Mouse
Leave
on
Mouse
Leave
Document
on
Mouse
Move
on
Mouse
Up
on
Move
Press
on
Press
on
Start
Coasting
on
Start
Hovering
on
Start
Interacting
on
Start
Pressing
on
Stop
Coasting
on
Stop
Hovering
on
Stop
Interacting
on
Stop
Pressing
press
set
Delegate
set
View
start
Coasting
start
Hovering
start
Interacting
start
Pressing
stop
Coasting
stop
Hovering
stop
Interacting
stop
Pressing
update
Input
view
Did
Mount
view
Will
Animate
view
Will
Unmount
will
Begin
Coast
will
Begin
Hover
will
Begin
Press
will
Cancel
Press
will
Coast
will
End
Coast
will
End
Hover
will
End
Press
will
Long
Press
will
Move
Press
will
Press
will
Start
Coasting
will
Start
Hovering
will
Start
Interacting
will
Start
Pressing
will
Stop
Coasting
will
Stop
Hovering
will
Stop
Interacting
will
Stop
Pressing
Generated using
TypeDoc