diff --git a/app/tour-controller.js b/app/tour-controller.js index 0b381b9..4ee4536 100644 --- a/app/tour-controller.js +++ b/app/tour-controller.js @@ -265,10 +265,18 @@ return handleEvent(step.config('onShow')).then(function () { - if (step.config('backdrop')) { - uiTourBackdrop.createForElement(step.element, step.config('preventScrolling'), step.config('fixed')); + if (!step.config('backdrop')) { + return; } + var delay = step.config('popupDelay'); + return $q(function (resolve) { + $timeout(function () { + uiTourBackdrop.createForElement(step.element, step.config('preventScrolling'), step.config('fixed')); + resolve(); + }, delay); + }); + }).then(function () { step.element.addClass('ui-tour-active-step');