Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ionic-team/ionic-framework
/ getVelocityX
Function
getVelocityX
core/src/utils/gesture/swipe-back.ts:37–39 ·
view source on GitHub ↗
(detail: GestureDetail)
Source
from the content-addressed store, hash-verified
35
};
36
37
const
getVelocityX = (detail: GestureDetail) => {
38
return
rtl ? -detail.velocityX : detail.velocityX;
39
};
40
41
const
canStart = (detail: GestureDetail) => {
42
/**
Callers
1
onEnd
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected