slowed down field scrolling

This commit is contained in:
David Baldwynn 2017-11-19 15:32:15 -08:00
parent ff509f2b5c
commit 1721db9efe

View File

@ -170,7 +170,7 @@ angular.module('view-form').directive('submitFormDirective', ['$http', 'TimeCoun
$scope.selected.index = field_index;
if(animateScroll){
$document.scrollToElement(angular.element('#'+field_id), -10, 50).then(function() {
$document.scrollToElement(angular.element('#'+field_id), -10, 300).then(function() {
if (angular.element('#'+field_id+' .focusOn').length) {
//Handle default case
angular.element('#'+field_id+' .focusOn')[0].focus();