Closed Bug 297482 Opened 19 years ago Closed 19 years ago

Scrolling with the mouse wheel or keyboard does not generate "onscroll" event

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 189308

People

(Reporter: george.simeonov, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

When scrolling in page using the mouse's wheel or using the keyboard (arrows,
PgUp, PgDn) onscroll event is not generated. If I use the scrollbar's buttons or
drag the scroller the event is generated. I found this error while developing
JavaScript which changes dinamically the position of a HTML element when
scrolling or esizing the window.

I've found another strange side effect while writing the testcase showing the
problem. When I click once on one of the scrollbar buttons many events are
generated and the scrolling does not stop until the scroller reaches the top/bottom.

The attached testcase shows the problem. It just shows alert dialog window when
onscroll event come.

Reproducible: Always

Steps to Reproduce:
1. Open the attached testcase.html.
2. Scroll with the mouse's wheel or the keyboard.
3. Scroll by dragging the scroller.
4. Click once on one of the scrollbar buttons.

Actual Results:  
After the second step nothing happened.
After the third step one or more alert windows with message "scrolling ..."
pop-upped.
After the forth step the windows was scrolled to the top/bottom depending on
which button has been pressed.

Expected Results:  
After the second step event should be generated and pop-up window should pop-up.
After the forth step only one pop-up whindow should appear and the only one row
should be scrolled.

*** This bug has been marked as a duplicate of 189308 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: