MCPcopy Create free account
hub / github.com/ampproject/amphtml / diff

Function diff

test/unit/test-gesture-recognizers.js:238–240  ·  view source on GitHub ↗
(value, compare, error)

Source from the content-addressed store, hash-verified

236 });
237
238 function diff(value, compare, error) {
239 return Math.abs(value - compare) <= error;
240 }
241
242 it('should allow single-point touchstart', () => {
243 const res = recognizer.onTouchStart({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected