Skip to content

Commit 3b2a49a

Browse files
committed
Fixed bug where scrollPosition would sometimes not be initialized.
1 parent 92e2ea7 commit 3b2a49a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

angular-parallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ factory('parallaxHelper',
2121

2222
angular.module('duParallax.directive', ['duScroll']).
2323
directive('duParallax',
24-
function($rootScope){
24+
function($rootScope, scrollPosition){
2525
//Never mind touch devices
2626
if('ontouchstart' in window) {
2727
return;

angular-parallax.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-parallax.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/directives/parallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
angular.module('duParallax.directive', ['duScroll']).
22
directive('duParallax',
3-
function($rootScope){
3+
function($rootScope, scrollPosition){
44
//Never mind touch devices
55
if('ontouchstart' in window) {
66
return;

0 commit comments

Comments
 (0)