Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Nested scrollbars blocked when used with "preventParentScroll" option. #40

Open
philSixZero opened this issue Nov 9, 2017 · 7 comments
Assignees

Comments

@philSixZero
Copy link

philSixZero commented Nov 9, 2017

If two nested scrollbars are displayed on one page, vuebar gets confused.

How does the bug affect the usability of vuebar?
If the outer scrollbar is at the very top position and the inner scrollbar is at the bottom, the inner scrollbar cannot scroll up anymore. And vice versa.

Are there any suggestions for a workaround before bugfix in upcoming versions?

@philSixZero philSixZero changed the title Nested Scrollbars is buggy Nested Scrollbars are buggy Nov 9, 2017
@DominikSerafin
Copy link
Owner

Hi @philSixZero, I can't reproduce it. Could you provide jsfiddle with minimal reproduction? Without it I'm not able to help you.

Here's good starting point: http://jsfiddle.net/u94ns8jc/1/

@philSixZero
Copy link
Author

Strangely, I can't reproduce it either in the jsfiddle.. Did you try nested scrollbars using webpack and .vue-Files, yet?

@DominikSerafin
Copy link
Owner

@philSixZero seems to work with single-file components also, see: https://www.webpackbin.com/bins/-Kyoqtm8CbjpkYegi7mF

@DominikSerafin
Copy link
Owner

I'm going to close this issue but if you're still having problems with it, then please leave a comment and I'll reopen it.

@exreplay
Copy link

exreplay commented Mar 23, 2018

@DominikSerafin I took your jsfiddle and modified it to reproduce the bug. It only appears when you use the preventParentScroll. Without it, everything works as expected.

  1. Scenario:
    Leave the parent untouched.
    Open the Modal.
    Scroll down and wait until the scrollbar fades.
    Try to scroll up. (It wont work)

  2. Scenario:
    Scroll the parent all the way down.
    Open the Modal.
    You wont be able to scroll the Modal.

  3. Scenario:
    Scroll the parent but don't leave it at the top or go all the way down.
    Open the Modal.
    Everything should work as expected.

http://jsfiddle.net/u94ns8jc/182/

@DominikSerafin
Copy link
Owner

@exreplay thanks for finding it out! I'm reopening this issue and will try to fix that in spare time.

@DominikSerafin DominikSerafin changed the title Nested Scrollbars are buggy Nested scrollbars blocked when used with "preventParentScroll" option. Mar 23, 2018
@DominikSerafin DominikSerafin self-assigned this Mar 23, 2018
@exreplay
Copy link

@DominikSerafin you are welcome! I'll try to have a look to when i have time and let you know if i can figure something out.

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

No branches or pull requests

3 participants