MCPcopy
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

Calls 1

signMethod · 0.80

Tested by

no test coverage detected