ajoslin / angular-scrolly

Fake transform-scrolling with angular-friendly utilities
http://ajoslin.github.io/angular-scrolly
65 stars 7 forks source link

body has wrong position #15

Closed bugwelle closed 11 years ago

bugwelle commented 11 years ago

Hello, I noticed that the body has transform: translate3d(0, 200px, 0);. Only problem: When the content isn't high enough, there's a 200px gap.

In the demo file, reduce the number of list items to ten. Then it looks like this:

scrolly

ajoslin commented 11 years ago

Yeah, I committed way too soon - I'll remove that hack and just use mousewheel instead.

ajoslin commented 11 years ago

OK, latest commit won't work for desktop - but it will fix this :-)

Hopefully later today I can get mousewheel and arrow keys and spacebar scroll working.

On Mon, Jul 29, 2013 at 7:55 AM, Andy Joslin andytjoslin@gmail.com wrote:

Yeah, I committed way too soon - I'll remove that hack and just use mousewheel instead.

bugwelle commented 11 years ago

Thanks :) After building angular-scrolly, I get an error which says that checkBoundaries is undefined.

Please replace this:

checkBoundaries()

with this:

self.checkBoundaries()

in your code :) That fixed it.