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

Method onTimeChanged

tools/xsbug/behaviors.js:337–342  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

335 onSelected(code) {
336 }
337 onTimeChanged(code) {
338 var scroller = this.getScroller(code);
339 var t = Date.now();
340 scroller.scrollBy(this.dx * this.acceleration * (t - this.tx), this.dy * this.acceleration * (t - this.ty));
341 this.onTouchSelect(code, this.x, this.y);
342 }
343 onTouchBegan(code, id, x, y, ticks) {
344 code.captureTouch(id, x, y, ticks);
345 this.onTouchBeganMode(code, id, x, y, ticks, CHAR_MODE);

Callers

nothing calls this directly

Calls 3

getScrollerMethod · 0.95
onTouchSelectMethod · 0.95
scrollByMethod · 0.65

Tested by

no test coverage detected