Merge pull request #3689 from FinnStutzenstein/scrollToTop

Scroll to top on every state change
This commit is contained in:
Emanuel Schütze 2018-04-10 13:47:45 +02:00 committed by GitHub
commit 47dfff2199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,7 @@ Core:
- Added --no-template-caching flag to disable template caching for - Added --no-template-caching flag to disable template caching for
easier development [#3566]. easier development [#3566].
- Reset scroll level for each new projection [#3686]. - Reset scroll level for each new projection [#3686].
- Scroll to top on every state change [#3689].
Mediafiles: Mediafiles:
- New form for uploading multiple files [#3650]. - New form for uploading multiple files [#3650].

View File

@ -160,6 +160,8 @@ angular.module('OpenSlidesApp.core.site', [
} else { } else {
$rootScope.baseViewPermissionsGranted = true; $rootScope.baseViewPermissionsGranted = true;
} }
// Scroll to top on every state change
$rootScope.gotoTop();
}); });
} }
]) ])