vuebar icon indicating copy to clipboard operation
vuebar copied to clipboard

2 scrollers appear

Open trandaison opened this issue 7 years ago • 10 comments

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);
    }
  }

trandaison avatar May 12 '18 07:05 trandaison

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

as a temp workaround

acupofspirt avatar May 29 '18 07:05 acupofspirt

same here

goors avatar Jun 11 '18 12:06 goors

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 avatar Dec 18 '18 14:12 DominikSerafin

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 😂

trandaison avatar Dec 24 '18 01:12 trandaison

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

DominikSerafin avatar Dec 24 '18 03:12 DominikSerafin

image

MBP 12, latest stable chrome, touchpad scrolling

wrabit avatar Feb 21 '19 16:02 wrabit

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?

DominikSerafin avatar Feb 21 '19 17:02 DominikSerafin

Oh ok, no I haven't even used it yet. This was the first hurdle.

Sent from mobile

On Thu, Feb 21, 2019 at 7:00 PM +0100, "Dominik Serafin" [email protected] wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

wrabit avatar Feb 21 '19 18:02 wrabit

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;
}

s0updev avatar Mar 25 '19 13:03 s0updev

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 ...

0xradical avatar May 17 '19 21:05 0xradical