Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getEndLocation - no container accounted for. #10

Open
bpincus opened this issue May 31, 2018 · 0 comments
Open

getEndLocation - no container accounted for. #10

bpincus opened this issue May 31, 2018 · 0 comments

Comments

@bpincus
Copy link

bpincus commented May 31, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant