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

Using the element inside a portion of screen doesn't seem to size correctly, origin is always left screen's edge. #66

Open
Thkasis opened this issue Nov 13, 2017 · 0 comments

Comments

@Thkasis
Copy link

Thkasis commented Nov 13, 2017

First great work , thanks. I have a little problem with getting it to size correctly inside a portion of the screen . The element is nested inside a div "position : relative". Upon load the _onResize() returns a false value. If I change the screen size a bit the _onResize() runs again and returns the correct value. So far I understand what the problem might be, but I cant get the origin of where the element is sized from to be relative to parent div. It's always the left edge of screen.

I see it even in the demo with drawer. the right side has a gap that is way beyond the edgeSwipeSensitivity and its because of the drawer panel that has shifted the origin; however, swipeable-pages still assumes origin or 0.

Hope it's clear what I am saying.

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