Skip to content

problem when usin on scrollable elements #45

@omarcio

Description

@omarcio

I've notice that if you use the plugin with scrollable elements and you use the scroll in those elements, the behaviour sometimes looks like there's a bug.

Url with the example of the problem:
http://jsfiddle.net/oms02/s53h7gko/26/

Scenario:
There's a wrapper (small size) wich has inside two large scrollable divs (once upon the other) with six floated elements with a height bigger than their parents so that the user can use the scroll.
In resume, the "map" look like this:


| 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 |
-- -- -- -- -- -- -- -- -- -- -- --
| 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 |


Steps:

  1. Click on the link "go to section 2.1". This correctly leads you to that div.
  2. Scroll on the section and before you click on the other link, make sure the div#section2.1 is not on the top (scroll). In this case, you won't be able to see the text of the box.
  3. Click on the link "go to section 2.2": on the second movement (on the y axis) it scrolls on the whole wrapper, which is wrong because the scroll should happen on the #div2. The text of the boxes look like hidden. If you scroll on the boxes of section 2, then you'll see the content, but you can see that the plugin didn't bring you to the correct position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions