|
Revision 7056, 0.8 kB
(checked in by mislav, 1 year ago)
|
Prototype: mousewheel enhancements, updated TODO, test tweaks. It is no longer relevant whether you use window or document objects to attach the handler to - it works either way. (Mozilla/IE use document while Opera/Safari wants window). Both 'mousewheel' and 'DOMMouseScroll' are accepted as event types, but 'mousewheel' is preffered (for now).
|
| Line | |
|---|
| 1 |
* try to prevent wrapper functions from messing with the scope: |
|---|
| 2 |
- IE scope correction hack |
|---|
| 3 |
- mouseenter/leave |
|---|
| 4 |
- mousewheel |
|---|
| 5 |
* resolve special cases for mousewheel handling: |
|---|
| 6 |
- window in IE |
|---|
| 7 |
- document in Opera |
|---|
| 8 |
- Opera & Safari won't fire the event on objects other than document |
|---|
| 9 |
* stopImmediatePropagation |
|---|
| 10 |
http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/events.html#Events-Event-stopImmediatePropagation |
|---|
| 11 |
[private] https://prototype.campfirenow.com/room/73745/transcript/message/23368771#message_23368771 |
|---|
| 12 |
https://prototype.campfirenow.com/room/73745/transcript/message/23651995#message_23651995 |
|---|
| 13 |
* Custom events for adding/removing class names, updating elements, etc. |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
Useful resources |
|---|
| 17 |
---------------- |
|---|
| 18 |
|
|---|
| 19 |
http://www.quirksmode.org/dom/w3c_events.html |
|---|
| 20 |
http://del.icio.us/mislav/events |
|---|
| 21 |
http://dev.opera.com/articles/javascript/ |
|---|