After returning to the page, the main page can not be scrolled for half a second. How to solve it?

When I return to the main page, it’s seems like a “overflow:hidden” when I want to scrolling the page. Customers need to be able to scroll immediately after returning to the main page.

this.$(document).on('page:afterin', (e, page) => {
                page.$el.css('overflow', 'hidden');
                setTimeout(() => {
                    page.$el.css('overflow', '');
                }, 0);
            });

Добавить в app => init(). Код от Владимира.