feat(mobile): add voice transcription to practice
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
export const resetPageScroll = () => {
|
||||
const scrollTop = () => {
|
||||
uni.pageScrollTo({ scrollTop: 0, duration: 0 });
|
||||
if (typeof window !== 'undefined') {
|
||||
window.scrollTo({ top: 0, left: 0, behavior: 'auto' });
|
||||
document.documentElement.scrollTop = 0;
|
||||
document.body.scrollTop = 0;
|
||||
}
|
||||
};
|
||||
|
||||
scrollTop();
|
||||
setTimeout(scrollTop, 0);
|
||||
setTimeout(scrollTop, 80);
|
||||
setTimeout(scrollTop, 240);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user