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

Function PiuScroller_set_scroll

modules/piu/All/piuScroller.c:522–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522void PiuScroller_set_scroll(xsMachine* the)
523{
524 PiuScroller* self = PIU(Scroller, xsThis);
525 xsIntegerValue x = 0, y = 0;
526 if (xsFindInteger(xsArg(0), xsID_x, &x))
527 x -= (*self)->delta.x;
528 if (xsFindInteger(xsArg(0), xsID_y, &y))
529 y -= (*self)->delta.y;
530 PiuScrollerScrollBy(self, (PiuCoordinate)x, (PiuCoordinate)y);
531}
532
533void PiuScroller_set_tracking(xsMachine* the)
534{

Callers

nothing calls this directly

Calls 1

PiuScrollerScrollByFunction · 0.85

Tested by

no test coverage detected