oblador / angular-parallax

Lightweight & performant parallax scrolling for angular.js.
http://oblador.github.io/angular-parallax/
MIT License
203 stars 44 forks source link

Error when testing on mobile emulator of Google Chrome #21

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi, currently integrated angular-parallax in a web project and it does not work on mobile devices. It also seems that it chokes the whole web project on safari on my Iphone and other Apple devices, resulting in a complete CRASH of Safari!

This is the error I get when emulating any mobile device. When I remove the du-parallax attribute, the error is gone and the webproject runs again on Apple devices without Safari shutting down.

TypeError: Cannot read property 'compile' of undefined at angular.js:6485 at forEach (angular.js:323) at Object. (angular.js:6480) at Object.invoke (angular.js:4182) at Object.enforcedReturnValue as $get at Object.invoke (angular.js:4182) at angular.js:4000 at Object.getService as get at directiveIsMultiElement (angular.js:7813) at collectDirectives (angular.js:7145)angular.js:11598 (anonymous function)angular.js:8548 $getangular.js:6498 (anonymous function)angular.js:323 forEachangular.js:6480 (anonymous function)angular.js:4182 invokeangular.js:4035 enforcedReturnValueangular.js:4182 invokeangular.js:4000 (anonymous function)angular.js:4141 getServiceangular.js:7813 directiveIsMultiElementangular.js:7145 collectDirectivesangular.js:6993 compileNodesangular.js:7009 compileNodesangular.js:7009 compileNodesangular.js:7009 compileNodesangular.js:6904 compileui-router.js:3893 compileangular.js:8217 invokeLinkFnangular.js:7726 nodeLinkFnangular.js:7075 compositeLinkFnangular.js:6954 publicLinkFnui-router.js:3839 updateViewui-router.js:3801 (anonymous function)angular.js:14707 $get.Scope.$broadcastui-router.js:3218 $state.transitionTo.$state.transition.resolved.then.$state.transitionangular.js:13175 processQueueangular.js:13191 (anonymous function)angular.js:14388 $get.Scope.$evalangular.js:14204 $get.Scope.$digestangular.js:14493 $get.Scope.$applyangular.js:9650 doneangular.js:9840 completeRequestangular.js:9781 requestLoaded

Also, from my experience, the parallax effect is choppy on all desktop browsers when scrolling with the mouse, all but firefox. (probably because it has a smooth scroll).

Hope this helps you to improve this angular module. Kind regards

ddtch commented 8 years ago

I have same problem. So does it works on mobile devices?