MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / scrollByPoint

Method scrollByPoint

core/src/components/content/content.tsx:366–369  ·  view source on GitHub ↗
(x: number, y: number, duration: number)

Source from the content-addressed store, hash-verified

364 */
365 @Method()
366 async scrollByPoint(x: number, y: number, duration: number): Promise<void> {
367 const scrollEl = await this.getScrollElement();
368 return this.scrollToPoint(x + scrollEl!.scrollLeft, y + scrollEl!.scrollTop, duration);
369 }
370
371 /**
372 * Scroll to a specified X/Y location in the component.

Callers 1

scrollByPointFunction · 0.80

Calls 2

getScrollElementMethod · 0.95
scrollToPointMethod · 0.95

Tested by

no test coverage detected