From 3a069a88e8db194d49554ac4f0ee4f1fe64ad121 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Thu, 17 Aug 2023 11:04:07 +0200 Subject: [PATCH] fix(settings): scroll to top when starting the help tour - fix #993 --- www/js/controllers/settings-controllers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/js/controllers/settings-controllers.js b/www/js/controllers/settings-controllers.js index ef8b90b90..e05a7669c 100644 --- a/www/js/controllers/settings-controllers.js +++ b/www/js/controllers/settings-controllers.js @@ -20,7 +20,7 @@ angular.module('cesium.settings.controllers', ['cesium.services', 'cesium.curren .controller('SettingsCtrl', SettingsController) ; -function SettingsController($scope, $q, $window, $ionicHistory, $ionicPopup, $timeout, $translate, $ionicPopover, +function SettingsController($scope, $q, $window, $ionicHistory, $ionicPopup, $timeout, $translate, $ionicPopover, $ionicScrollDelegate, UIUtils, Modals, BMA, csHttp, csConfig, csCurrency, csSettings, csPlatform) { 'ngInject'; @@ -481,6 +481,7 @@ function SettingsController($scope, $q, $window, $ionicHistory, $ionicPopup, $ti var helptipScope = $scope.createHelptipScope(tour); if (!helptipScope) return; // could be undefined, if a global tour already is already started + $ionicScrollDelegate.scrollTop(true); return helptipScope.startSettingsTour(index, false) .then(function(endIndex) { helptipScope.$destroy(); -- GitLab