mirror of
https://github.com/fankes/AndroidNotifyIconAdapt.git
synced 2025-09-04 09:45:46 +08:00
Modify change when switch pages always scroll current page to top
This commit is contained in:
@@ -64,6 +64,10 @@ const pageController = {
|
||||
$('#' + pageId).show();
|
||||
$('#' + itemId).addClass('mdui-list-item-active');
|
||||
pageController.changePageTitle(title);
|
||||
pageController.scrollToTop();
|
||||
},
|
||||
scrollToTop: () => {
|
||||
$('body, html, #body-container').scrollTop(0);
|
||||
},
|
||||
changePageTitle: (title) => {
|
||||
$('#page-title-text').html(title);
|
||||
|
Reference in New Issue
Block a user