MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onTimeChanged

Method onTimeChanged

tools/xsbug/CodeView.js:316–322  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

314 };
315 }
316 onTimeChanged(code) {
317 var scroller = code.container;
318 var t = Date.now();
319 scroller.scrollBy(this.dx * this.acceleration * (t - this.tx), this.dy * this.acceleration * (t - this.ty));
320 if (this.captured == code)
321 this.onTouchSelect(code, this.x, this.y);
322 }
323 onTouchBegan(code, id, x, y, ticks) {
324 code.captureTouch(id, x, y, ticks);
325 this.captured = code;

Callers

nothing calls this directly

Calls 2

onTouchSelectMethod · 0.95
scrollByMethod · 0.65

Tested by

no test coverage detected