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

Scroll bar is not visible on Chrome macOS when OS option "Show scroll bars" is not set to "Always" #3887

Closed
jakub-zawislak opened this issue Feb 5, 2019 · 4 comments

Comments

@jakub-zawislak
Copy link

It is similar to #2872 but fix from that issue doesn't work here. It can't be fixed by setting a background with small opacity, it works only with non-transparent backgrounds.
Also, I have no issue on the newest Safari 12.0.1 - it works without that fix.

macOS Mojave 10.14.1
Chrome 71.0.3578.98

@MrSpoocy
Copy link

I think this is the Apple Magic Trackpad bug. If you use it, instant of mouse, you never have permanent scrollbar. Also you will have the bug, that the ACE think there is a horizontal scrollbar and you can not click in the last line of the editor.

@nightwing
Copy link
Member

Please check if #3987 fixes this

@Exadra37
Copy link

Exadra37 commented Apr 29, 2020

Just for anyone arriving here(like me) from Google to fix this same issue in their own project the solution can be found in this site:

:root {
  --scrollbar-track-color: transparent;
  --scrollbar-color: rgba(0,0,0,.2);

  --scrollbar-size: .375rem;
  --scrollbar-minlength: 1.5rem; /* Minimum length of scrollbar thumb (width of horizontal, height of vertical) */
}
.overflowing-element::-webkit-scrollbar {
  height: var(--scrollbar-size);
  width: var(--scrollbar-size);
}
.overflowing-element::-webkit-scrollbar-track {
  background-color: var(--scrollbar-track-color);
}
.overflowing-element::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color);
  /* Add :hover, :active as needed */
}
.overflowing-element::-webkit-scrollbar-thumb:vertical {
  min-height: var(--scrollbar-minlength);
}
.overflowing-element::-webkit-scrollbar-thumb:horizontal {
  min-width: var(--scrollbar-minlength);
}

Just replace .overflowing-element with the class name for the div you want to show the scroll bar.

NOTE: Sorry to hijack this issue, but this problem is so hard to solve and find a solution, because Google keeps directing me to issues in Github for specific projects or to tutorials in how to enable the scroll bars to always show in the MAC OS.

@maninderbit
Copy link

Thank You!!, it saves a day.

@andrewnester andrewnester closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2022
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

6 participants