Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Firefox does not scroll when selecting text

📅 2015-Nov-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ error, firefox, scroll ⬩ 📚 Archive

Problem

I run into so many small, but irritating problems in UI of programs that I wonder if I am the only one affected by them! Here is another one that took a while to figure out.

Someone had sent me a long email that was many pages long. I had it open in Gmail in Firefox. I needed to copy a large portion of this email and paste it into another document.

Ctrl + A to Select All was not a solution since that selects all the text being displayed, including sections of the Gmail UI. A common solution in this situation it to put the mouse cursor at the start of the text, press down the Left button, drag mouse down until it hits the screen bottom and keep dragging until I reach end of the text I want. This highlights and selects the text portion I want and I can now right-click and choose Copy or press Ctrl + c to copy it.

The strange problem was that, this did not work! Keeping Left mouse button pressed I could drag until screen bottom, but the page would not scroll up allowing me to choose the rest of the text!

Solution

It turns out that this happens only in Firefox on Ubuntu. It will only happen when Firefox is shown in a maximized or fullscreen window.

What is happening is that when the mouse cursor is dragged to hit the screen bottom, something in Firefox UI is not indicating that the cursor is trying to move out of the window. Thus, the webpage is not scrolling.

Turns out that this is a known bug, reported here in 2011. Four years on, a good solution is still being debated on.

Until it is fixed, the solution is simple: unmaximize or restore your Firefox window so that it is not fullscreen or maximized. Now try the copy operation, the webpage will scroll and it will work! Voila!

Tried with: Firefox 42 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧