diff --git a/dev/App/User.js b/dev/App/User.js index bfb6cbd44..20874e4eb 100644 --- a/dev/App/User.js +++ b/dev/App/User.js @@ -182,7 +182,6 @@ export class AppUser extends AbstractApp { bootstart() { super.bootstart(); - addEventListener('resize', () => leftPanelDisabled(ThemeStore.isMobile() || 1000 > innerWidth)); addEventListener('beforeunload', event => { if (arePopupsVisible() || (ThemeStore.isMobile() && MessageUserStore.message())) { event.preventDefault(); diff --git a/dev/Stores/Theme.js b/dev/Stores/Theme.js index 9d3c702d1..b8d49809b 100644 --- a/dev/Stores/Theme.js +++ b/dev/Stores/Theme.js @@ -102,5 +102,6 @@ addSubscribablesTo(ThemeStore, { isMobile.onchange = e => { ThemeStore.isMobile(e.matches); $htmlCL.toggle('rl-mobile', e.matches); + leftPanelDisabled(e.matches); }; isMobile.onchange(isMobile);