Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ampproject/amphtml
/ getScrollDirection
Method
getScrollDirection
src/service/resources-impl.js:290–292 ·
view source on GitHub ↗
@override
()
Source
from the content-addressed store, hash-verified
288
289
/** @override */
290
getScrollDirection() {
291
return
Math.sign(this.lastVelocity_) || 1;
292
}
293
294
/** @override */
295
add(element) {
Callers
2
calcTaskScore_
Method · 0.95
getDistanceViewportRatio
Method · 0.45
Calls
1
sign
Method · 0.80
Tested by
no test coverage detected