forcedotcom / scrollerjs

A JavaScript library that helps you build performant UI components for the web.
http://scrollerjs.com
Apache License 2.0
636 stars 63 forks source link

Cannot read property 'contentIndex' of undefined with gpuOptimization #16

Open thebigredgeek opened 9 years ago

thebigredgeek commented 9 years ago

When I enable GPU optimization on a scroller instance, it seems to throw this error.

Here is a plunker. I am using AngularJS. Any help here would be great.

http://plnkr.co/edit/1Vl657zL5Rc6AbdgjBwm?p=preview

serhiisol commented 9 years ago

Also I've got another similar to this one issues:

Cannot read property 'offset' of undefined
     at Object.SurfaceManager._getSurfaceTotalOffset line 16285, column 27 (file:///android_asset/www/vendors.js:16285)
     at Object.SurfaceManager._updateSurfaceManager line 16578, column 42 (file:///android_asset/www/vendors.js:16578)
     at Object.Scroller._fire line 14960, column 33 (file:///android_asset/www/vendors.js:14960)
     at Object.Scroller._update line 15167, column 18 (file:///android_asset/www/vendors.js:15167)
     at step line 15774, column 22 (file:///android_asset/www/vendors.js:15774)
Cannot read property 'dom' of undefined
     at Object.SurfaceManager._attachItemInSurface line 16293, column 41 (file:///android_asset/www/vendors.js:16293)
     at Object.SurfaceManager._positionedSurfacesUnshift line 16457, column 22 (file:///android_asset/www/vendors.js:16457)
     at Object.SurfaceManager._updateSurfaceManager line 16586, column 36 (file:///android_asset/www/vendors.js:16586)
     at Object.Scroller._fire line 14960, column 33 (file:///android_asset/www/vendors.js:14960)
     at Object.Scroller._update line 15167, column 18 (file:///android_asset/www/vendors.js:15167)
     at step line 15774, column 22 (file:///android_asset/www/vendors.js:15774)

Sorry for line and column numbers, the exceptions were taken from Raygun (only stack trace available)

Issue was captured on Android Device (using phonegap)

diervo commented 9 years ago

Sorry for the delay. I will take a look this weekend.