Skip to content

Commit 695abcf

Browse files
committed
fix(content): scrollToTop
1 parent 3ab835c commit 695abcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/components/content/content.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ export class Content {
167167
* Scroll to the top of the component
168168
*/
169169
@Method()
170-
scrollToTop(duration = 100): Promise<void> {
171-
return this.scrollToPoint(0, undefined, duration);
170+
scrollToTop(duration = 0): Promise<void> {
171+
return this.scrollToPoint(undefined, 0, duration);
172172
}
173173

174174
/**
175175
* Scroll to the bottom of the component
176176
*/
177177
@Method()
178-
scrollToBottom(duration = 100): Promise<void> {
178+
scrollToBottom(duration = 0): Promise<void> {
179179
const y = this.scrollEl.scrollHeight - this.scrollEl.clientHeight;
180180
return this.scrollToPoint(undefined, y, duration);
181181
}

0 commit comments

Comments
 (0)