Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Scroll on container doesn't behave properly #3

Closed
tyok opened this issue Dec 2, 2010 · 1 comment
Closed

Scroll on container doesn't behave properly #3

tyok opened this issue Dec 2, 2010 · 1 comment

Comments

@tyok
Copy link

tyok commented Dec 2, 2010

Hi, I encountered a bug that occured using these steps:

  1. Design a div to use overflow: scroll so we can scroll on it.
  2. Set pageless to use that div as container (e.g $(x).pageless({container: x})).
  3. Load all the javascript (jquery.pageless.js and the code above) in the body, not head.

Buggy behavior:

  1. Scroll on the div. The pageless script doesn't work.
  2. Scroll on body. The pageless script works.

Wanted behavior:
Scroll on the div. The pageless script works and loads the next page.

The fix is really simple, just add this line below here; in init function:
if (settings.container) container = settings.container;

@jney
Copy link
Owner

jney commented Feb 3, 2011

you're right container was set too early. fixed now. thank you and sorry answering you so late

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants