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

Vertical scroll not working ? #16

Closed
donpernino opened this issue Nov 7, 2019 · 14 comments
Closed

Vertical scroll not working ? #16

donpernino opened this issue Nov 7, 2019 · 14 comments

Comments

@donpernino
Copy link

donpernino commented Nov 7, 2019

Hello,

I tried to use the plugin like so :

<ScrollContainer className="scroll-container" vertical={true} horizontal={true}> <MyImage /> </ScrollContainer>

I am able to scroll horizontally by dragging but I can't move vertically at all. I don't know what I should do.

Thanks

@Norserium
Copy link
Owner

Hello!

Could you upload the example, that illustrates your problem?

I can't reproduce this bug here.

@donpernino
Copy link
Author

donpernino commented Nov 7, 2019

Here you go :)

@Norserium
Copy link
Owner

Norserium commented Nov 7, 2019

There is no problem. Your image resizes container vertically, so it fits completely in the container.

Just set the max height of your container and vertical dragging will be appear
https://codesandbox.io/s/test-indiana-drag-scroll-e1xgm

@donpernino
Copy link
Author

Okay my bad indeed, I did not think of the max-height. Sorry and thanks for the reactivity

@Norserium
Copy link
Owner

@donpernino, you are welcome!

@Kamlesh-62
Copy link

Hi there,

I am also having the same issue. my vertical scroll is not working and in my example height is more than the screen height I can see the scroll bar on the right side.
` <ScrollContainer
vertical={true}
horizontal={true}
hideScrollbars={true}
Screen Shot 2022-12-08 at 10 34 43 AM

    >`

is code.

@Norserium
Copy link
Owner

@Kamlesh-62, what's version do you use?

@Kamlesh-62
Copy link

Kamlesh-62 commented Dec 8, 2022

I guess the latest one @2.2.0

@Norserium
Copy link
Owner

@Kamlesh-62, try to use @next version for test.

@Kamlesh-62
Copy link

I am sorry I did not understand correctly, what's the @next version? if you can provide me a link that would be really appreciated.

@Kamlesh-62
Copy link

You means this version @3.0.3-alpha

@Kamlesh-62
Copy link

Nope, I tried with this @3.0.3-alpha, it is not scrolling, even the whole right part gets hidden. I you have any solution for the current version?

@Kamlesh-62
Copy link

Thanks find a solution. On the scroll-container "Div", I gave 100vh height it worked. I don't know why it did not work on the default height from the browser. Thanks, BTW.

@Norserium
Copy link
Owner

@Kamlesh-62, all's well that ends well.

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

3 participants