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

2 scrollers appear #55

Open
trandaison opened this issue May 12, 2018 · 10 comments
Open

2 scrollers appear #55

trandaison opened this issue May 12, 2018 · 10 comments
Assignees
Labels
Need Minimal Repro Need minimal reproduction (on CodeSandbox, JSFiddle, etc.).

Comments

@trandaison
Copy link

When using the trackpad, there're 2 scrollers. This doesn't happen when I plug a mouse.

!

Here're my HTML and CSS:

<div class="vuebar-element">
  <div>
    <!-- content here -->
  </div>
</div>
  .vuebar-element {
    height: 250px;
    width: 100%;
  }

  .vb > .vb-dragger {
      z-index: 5;
      width: 12px;
      right: 0;
  }

  .vb > .vb-dragger > .vb-dragger-styler {
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transform: rotate3d(0,0,0,0);
      transform: rotate3d(0,0,0,0);
      -webkit-transition:
          background-color 100ms ease-out,
          margin 100ms ease-out,
          height 100ms ease-out;
      transition:
          background-color 100ms ease-out,
          margin 100ms ease-out,
          height 100ms ease-out;
      background-color: rgba(156, 39, 176, .0);
      margin: 5px 5px 5px 0;
      border-radius: 20px;
      height: calc(100% - 10px);
      display: block;
  }

  .vb.vb-scrolling-phantom > .vb-dragger > .vb-dragger-styler {
      background-color: rgba(156, 39, 176, .3);
  }

  .vb > .vb-dragger:hover > .vb-dragger-styler {
      background-color: rgba(156, 39, 176, .5);
      margin: 0px;
      height: 100%;
  }

  .vb.vb-dragging > .vb-dragger > .vb-dragger-styler {
      background-color: rgba(156, 39, 176, .5);
      margin: 0px;
      height: 100%;
  }

  .vb.vb-dragging-phantom > .vb-dragger > .vb-dragger-styler {
      background-color: rgba(156, 39, 176, .5);
  }

  .vuebar-element:hover {
    .vb-dragger-styler {
        background-color: rgba(156, 39, 176, .3);
    }
  }
@acupofspirt
Copy link

acupofspirt commented May 29, 2018

<style>
  ::-webkit-scrollbar {
    display: none;
  }
</style>

as a temp workaround

@goors
Copy link

goors commented Jun 11, 2018

same here

@DominikSerafin
Copy link
Owner

Hi @trandaison @acupofspirt @goors could anyone of you provide minimal repro (on JSFiddle, CodeSandbox, or similar), so I can look into this issue? Thanks!

@DominikSerafin DominikSerafin added the Need Minimal Repro Need minimal reproduction (on CodeSandbox, JSFiddle, etc.). label Dec 18, 2018
@trandaison
Copy link
Author

Hi @DominikSerafin,

This appear sometimes, and on some pc.
Suppose I can provide on jsfiddle, it doesn't make sure that this will happen on your browser 😂

@DominikSerafin
Copy link
Owner

@trandaison minimal repro on jsfiddle would be awesome. On which OSes/browsers does it happen?

@DominikSerafin DominikSerafin self-assigned this Jan 6, 2019
@wrabit
Copy link

wrabit commented Feb 21, 2019

image

MBP 12, latest stable chrome, touchpad scrolling

@DominikSerafin
Copy link
Owner

DominikSerafin commented Feb 21, 2019

Hey @williamabbott thanks for the image and info. GGather uses older version of Vuebar (0.0.18) - I didn't have yet chance to update. Have you seen this behavior with the newer versions of Vuebar?

@wrabit
Copy link

wrabit commented Feb 21, 2019 via email

@s0updev
Copy link
Contributor

s0updev commented Mar 25, 2019

Got the same problem but with a mouse in latest Chrome\Opera on MacOS, as the tester reported.
And the text inside the container was moved when the second scrollbar appeared.

Vuebar version is 0.0.20

It helped:

.vb > .vb-content::-webkit-scrollbar {
    -webkit-appearance: none;
}

@0xradical
Copy link

0xradical commented May 17, 2019

Hi @DominikSerafin I was able to come up with a minimal repro ... here's the fiddle: https://jsfiddle.net/thiagobrandam/tfhnygcj/26/

It seems that a position: relative in child elements causes chrome and possibly other browsers to add a scrollbar. I still don't understand why though but will take a look and maybe come up with a fix. Just posting in case you might know right away the problem ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Need Minimal Repro Need minimal reproduction (on CodeSandbox, JSFiddle, etc.).
Projects
None yet
Development

No branches or pull requests

7 participants