Closed
Bug 782190
Opened 13 years ago
Closed 13 years ago
Implement onwheel attribute
Categories
(Core :: DOM: Events, enhancement)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(2 files, 1 obsolete file)
336 bytes,
text/html
|
Details | |
6.96 KB,
patch
|
smaug
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
D3E WheelEvent has been implemented already. However, there is no event attribute for it.
HTML5 draft doesn't define onwheel, but defines onmousewheel which is for the legacy mousewheel event (implemented on IE and WebKit). I think that we shouldn't use the name for wheel event and should be dropped from HTML5 spec.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18542
Comment 1•13 years ago
|
||
Does IE have onwheel?
But anyhow, we should have it.
Assignee | ||
Comment 2•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #1)
> Does IE have onwheel?
IE9 doesn't support onwheel event. I don't know IE10. I don't have environment which has IE10.
Comment 3•13 years ago
|
||
you mean IE9 doesn't have onwheel property? It should support "wheel" event, I think.
At least they were claiming to implement all of D3E.
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #3)
> you mean IE9 doesn't have onwheel property?
Oops, I meant onwheel attribute isn't supported. E.g.,
<div style="overflow: auto; height: 100px; width: 100px;" onwheel="alert(event.type);">
<div style="height: 1000px; width: 1000px;" onwheel="alert(event.type);"></div>
</div>
In this case, these onwheel's script are not performed.
Assignee | ||
Comment 5•13 years ago
|
||
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #651650 -
Flags: review?(bugs)
Comment 7•13 years ago
|
||
Comment on attachment 651650 [details] [diff] [review]
Patch
I think we want also target.onwheel support, not only <element onwheel>
Attachment #651650 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 8•13 years ago
|
||
Ah, but I don't know where I need to change. Where should I change?
Assignee | ||
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Yup, similarly to, hmm, I guess onclick for example.
Assignee | ||
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
You'll need to also use different macro in nsEventNameList.h
Assignee | ||
Comment 13•13 years ago
|
||
Attachment #651650 -
Attachment is obsolete: true
Attachment #652027 -
Flags: review?(bugs)
Updated•13 years ago
|
Attachment #652027 -
Flags: review?(bugs) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #652027 -
Flags: superreview?(jst)
Assignee | ||
Updated•13 years ago
|
Status: NEW → ASSIGNED
Updated•13 years ago
|
Attachment #652027 -
Flags: superreview?(jst) → superreview+
Assignee | ||
Comment 14•13 years ago
|
||
Target Milestone: --- → mozilla17
Comment 15•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•