slowed down field scrolling
This commit is contained in:
parent
ff509f2b5c
commit
1721db9efe
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user