We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab835c commit 695abcfCopy full SHA for 695abcf
core/src/components/content/content.tsx
@@ -167,15 +167,15 @@ export class Content {
167
* Scroll to the top of the component
168
*/
169
@Method()
170
- scrollToTop(duration = 100): Promise<void> {
171
- return this.scrollToPoint(0, undefined, duration);
+ scrollToTop(duration = 0): Promise<void> {
+ return this.scrollToPoint(undefined, 0, duration);
172
}
173
174
/**
175
* Scroll to the bottom of the component
176
177
178
- scrollToBottom(duration = 100): Promise<void> {
+ scrollToBottom(duration = 0): Promise<void> {
179
const y = this.scrollEl.scrollHeight - this.scrollEl.clientHeight;
180
return this.scrollToPoint(undefined, y, duration);
181
0 commit comments