# Texto pré-formatado com rolagem inutilizável em alguns navegadores

**URL:** <https://meta.discourse.org/t/scrolling-preformatted-text-unusable-in-some-browsers/105085>\
**Category:** UX\
**Created:** [Dezembro 26, 2018, 8:09pm UTC](https://meta.discourse.org/t/scrolling-preformatted-text-unusable-in-some-browsers/105085 "2018-12-26T20:09:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![vvanpo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vvanpo/32/114112_2.png) [@vvanpo](https://meta.discourse.org/u/vvanpo)\
**Post date:** [Dezembro 26, 2018, 8:09pm UTC](https://meta.discourse.org/t/scrolling-preformatted-text-unusable-in-some-browsers/105085/1 "2018-12-26T20:09:23Z")

</div>

On some browsers/platforms, single-line preformatted text that runs off the screen is difficult to use.

On MacOS Chrome, in particular, the instant you hover over the text the horizontal scrollbar obscures the text, and then never goes away again, no matter how long you leave your cursor somewhere else on the screen. It makes it difficult to read or select the text:

![33%20AM](https://global.discourse-cdn.com/meta/optimized/3X/e/2/e24da068228526e6597455d67bc7ff24b54b4119_2_690x39.png)

On Windows Chrome, however, this is not an issue. The scrollbar is always there, even on initial page load, but does not obscure the text:

![windows-chrome-discourse-preformat](https://global.discourse-cdn.com/meta/original/3X/f/b/fbc02a90960795c285fc3cdc716a3825c7be90d8.png)

On MacOS Firefox, the scrollbar does not appear when you hover over the text. The only way to see text that runs off the screen is to select the text and pull your cursor to the right of the screen. Then the scrollbar briefly appears (and obscures the text just as in MacOS Chrome), but goes away very quickly and is generally unusable.

Safari has the same behaviour as Firefox.

I know there are some hacky ways to detect scrollbar width in javascript, but I’m not sure if this is actually a Discourse bug or a browser bug?

---

_[View the full topic](https://meta.discourse.org/t/scrolling-preformatted-text-unusable-in-some-browsers/105085)._
