Closed
Bug 67287
Opened 24 years ago
Closed 24 years ago
DIV overflow scrollbar fires events
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: asreddy_74, Assigned: joki)
Details
Attachments
(1 file)
|
517 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
BuildID: Mozilla/5.0 (Windows; U; WinNT4.0; m18) Gecko/20001106
Netscape6/6.0
When a div with style overflow has events attached to it and the div has
scrollbars, when the scrollbars are clicked events attached to div are fired.
Reproducible: Always
Steps to Reproduce:
1.Test the example below
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<div style=
"overflow:auto;background-color:#8D8D80;width:100;height:50"
onclick="javascript:alert('onclick');">
<table width="1" border="1" cellspacing="1" cellpadding="0">
<tr>
<td>aaaaaaaaaaaaaaaaaaaaaaaaaaaa</td>
<td>bbbbbbbbbbbbbbbbbbbbbbbbbbbb</td>
<td>ccccccccccccccccccccccccccccccc</td>
</tr>
</table>
</div>
</body>
</html>
2. Click scrollbar arrow
Actual Results: When scrollbar arrow clicked div event onclick is fired
Expected Results: No event should be fired when scroll bar clicked
Comment 1•24 years ago
|
||
Reporter, this form is for the Mozilla product only. Could you please download
the Mozilla latest nightly at http://ftp.mozilla.org/pub/mozilla/nightly and
retest the bug you are seeing, please? A lot of bug fixes have been checked in
Mozilla that are not in Netscape 6.
Thank you for your time,
Fabian.
Hi Fabian,
Tested on latest build
Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20010131
Problem still exists
Regards
Srinivas
Comment 5•24 years ago
|
||
Confirming bug.
Reassigning to Event Handling, although it might be an XPT-issue.
Assignee: clayton → joki
Status: UNCONFIRMED → NEW
Component: HTML Element → Event Handling
Ever confirmed: true
| Assignee | ||
Comment 6•24 years ago
|
||
You'll also notice that if you put an event handler on the document you'll get
events from the regular scrollbar. This is intentional. There was some debate
about this originally but it was decided that if a user was trying to monitor
all input to a page that not passing along events from scrollbars would present
dead-zones in the page where all event were swallowed. Yes, the browser uses
the events to run the scrollbar but it also uses click events on links but we
still want the user to have access to that event.
Works as designed. Marking invalid.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•