Skip to content

getEndLocation - no container accounted for. #10

Description

@bpincus

Hi there,

I found this library and it works great! However I noticed that when I had multiple points in a container div the getEndLocation function would act all wonky and not account for the container offset. I was able to resolve this issue by adding the following to the top of the function directly following the variable declarations.

if (containerPresent) {
    absoluteElementTop = elementRect.top + container.scrollTop;
}

Cheers.

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