Closed Bug 229089 Opened 21 years ago Closed 18 years ago

Textarea onscroll does not work

Categories

(Core :: DOM: Events, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: erik, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

A textarea, as well as all other text inputs like input[type=text] and XUL
inputs, does not fire onscroll when the content is scrolled.

This is most likely due to the editor not propagating the events up to the
hosting element (just like 90% of the text input bugs).
Have tried your attached Testcase from comment #1 with:
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7a) Gecko/20031221
and it works for me. 
The Statusbar was updated by typing some Text in the Box, make some Returns,
also by scrolling Textbox with the Mouse. 

Which Mozilla-Build you are using? Have tried latest Builds?
I'm using Mozilla Firebird 0.8 builds. What changed after this that made this
work (or might this be a FB issue)?
Tried the attached testcase and can't get it to work as reported by first author.
The versions I tried are: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7a)
Gecko/20031225,
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208,
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031007 and
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031012.
The statusbar just won't change and the onscroll seems not to fire anything.
The problem seems to simply be that onscroll events do not bubble (and don't
seem to capture either) and what's really scrolling is not the textarea but an
anonymous overflow:auto div inside it...
Since scroll events do not bubble it is up to the textarea (and input,
xul:textbox) implementation to propagate the event from the editor shell to the
element.
*** Bug 305661 has been marked as a duplicate of this bug. ***
attachment 117564 [details] (from bug 145577) is a good testcase for this bug. 
It also shows that scrollLeft and scrollTop are updated when text direction is
changed 
Folks,

Can someone give a try to attachment 137786 [details] and then a try to attachment 117564 [details]. Over here, with Seamonkey 1.5a rv:1.9a1 build 2006071409 under XP Pro, I get the expected results in both testcases. 

WORKSFORME

I have not tried with Firefox 2.0 beta 1.
Blocks: tibco
Bug 234455 fixed this.
Depends on: 234455
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
And bug 334216 also affected this.
Depends on: 334216
Olli/Smaug, I can not get expected results with Firefox 2.0 RC 1 rv:1.8.1 build 20060918 under XP Pro SP2 when trying attachment 117564 [details].
I am not getting expected results.  XP SP2, firefox 2.0.0.18

onscroll events do not fire as expected using direct assignment (element.onscroll), nor addEventListener.

this makes me very sad.  very very sad.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: