Drag a scrollbar on a DIV which has been populated dynamically




11 years ago
7 years ago


(Reporter: stu_j, Unassigned)



Firefox Tracking Flags

(Not tracked)


(Whiteboard: [testday-20110902], URL)



11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: Gecko/20080404 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008062703 Minefield/3.1a1pre

When a DIV is populated dynamically using JavaScript and innerHTML with enough content to cause a vertical scrollbar to appear, dragging that scrollbar having previously clicked in the DIV doesn't scroll the contents.

Rather, a translucent image of the element "detaches" and moves with the mouse - i.e. the same behaviour as when you try and drag any static element, such as an image, in FF3.

I've tried this in IE7, Safari 3.1.2 and FF2 on Windoze. It's fine in those. Bug? 

Reproducible: Always

Steps to Reproduce:
1. Given an empty DIV
2. Click once inside it
3. Fill it dynamically with enough content to make a vertical scrollbar appear
4. Attempt to drag the scrollbar
5. Weirdness ensues
Actual Results:  
Firefox acts as if you're dragging a static page element, such as an image.

Expected Results:  
I expect the scrollbar to scroll the contents of the DIV.

I noticed this first in the version of FF3 I downloaded on June 17th. Tried again - as per the suggestions - with the latest "Minefield" build, and the problem is still there.

Comment 1

11 years ago
Test page:


Comment 2

11 years ago
Confirmed.  (3.0 on Linux)
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All


11 years ago
Keywords: regression
Version: unspecified → 3.0 Branch


11 years ago
Keywords: regression


11 years ago
Component: General → General
Product: Firefox → Core
QA Contact: general → general
Version: 3.0 Branch → Trunk

Comment 3

9 years ago
Same problem here, this bug only happens on Firefox.

Comment 4

7 years ago
Some open bugs about scrollbars not working properly because they are a part of a selection:
bug 345312, bug 491079, bug 572504, bug 649684;
where the selection is because they are a part of an <a>: bug 367028.
Possibly also bug 464655.


7 years ago
Whiteboard: [testday-20110902]
You need to log in before you can comment on or make changes to this bug.