diff --git a/core/src/components/content/content.tsx b/core/src/components/content/content.tsx index afeb8330cfe..3f06e0d9668 100644 --- a/core/src/components/content/content.tsx +++ b/core/src/components/content/content.tsx @@ -167,15 +167,15 @@ export class Content { * Scroll to the top of the component */ @Method() - scrollToTop(duration = 100): Promise { - return this.scrollToPoint(0, undefined, duration); + scrollToTop(duration = 0): Promise { + return this.scrollToPoint(undefined, 0, duration); } /** * Scroll to the bottom of the component */ @Method() - scrollToBottom(duration = 100): Promise { + scrollToBottom(duration = 0): Promise { const y = this.scrollEl.scrollHeight - this.scrollEl.clientHeight; return this.scrollToPoint(undefined, y, duration); }