Closed Bug 263632 Opened 20 years ago Closed 20 years ago

Select text breaks scrollbar

Categories

(Core :: Layout: Positioned, defect)

1.7 Branch
x86
Windows 98
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bugzilla, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Win98; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

In the page at http://www.csszengarden.com/, selecting all of the text on the
page (which IE can't do properly!) causes the scroll bar to stop working. You
cannot scroll with either the bar or the arrows - when you click it, the
selection disappears, and then an alternative selection is made starting from
the point on the page you clicked the bar.
You can however scroll with the keyboard arrow keys or the scrollwheel on the
mouse with no problems.

I reproduced this with the default css theme, beccah and medioevo. On teatime
and centerfold, where the menus are to the left, the functionality remains.
Others I could not even select more than one paragraph of.

This seems to be a special case where many divs are used - this gives the select
algorithm a more complicated task. The problem seems to be that it receives the
click as a request to perform a select operation rather than a request to the
scroll bar widget, but I'm no expert.

I only once couldn't reproduce this problem, but didn't remember how.

Reproducible: Sometimes
Steps to Reproduce:
1. Load http://www.csszengarden.com.
2. Select text on the page from anywhere on the left to "Translations" on the right.
3. Click and drag the mouse on the scroll bar.

Actual Results:  
A new selection is performed.

Expected Results:  
The page scrolls and the selection remains.
I can see the bug with:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
But I don't experience it with:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041009
Firefox/0.9.1+

I think this has been fixed somehow alreay.
*** Bug 263639 has been marked as a duplicate of this bug. ***
Keywords: qawanted
Whiteboard: DUPEME
Attached file testcase
Make sure your window is small enough to display a scrollbar. Select Part of
the black text, together with part of the red text (which is in an
absolutely-positioned div). The scrollbar doesn't work the first time you try
to use it (but works the second time).
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.3) Gecko/20041005 Firefox/0.10.1

Not confirming because apparently fixed on trunk.
Assignee: firefox → nobody
Component: General → Layout: R & A Pos
Keywords: qawantedtestcase
Product: Firefox → Browser
QA Contact: firefox.general → core.layout.r-and-a-pos
Version: unspecified → 1.7 Branch
If it's fixed on trunk, it's worksforme.  Non-crash bugfixes like this really
shouldn't be going into the branch at this point.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: