Changes between Initial Version and Version 3 of Ticket #3763


Ignore:
Timestamp:
Aug 13, 2008, 4:19:22 AM (13 years ago)
Author:
bill
Comment:

Fix formatting of comment, and moving to future until there's a volunteer to do this.

Please attach testcases using the "attach file" button.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3763

    • Property Milestone changed from to future
  • Ticket #3763 – Description

    initial v3  
    11Currently the support for mouse wheel is extremely fragmented (as you will see by running the code below). Since dojo provides the 'fixEvent' function, the fixEvent should probably also standardize the values across the supported browsers. Unlike most cases when it comes to mouse event support, IE/safari/opera are similar and firefox is different.
    2 
     2{{{
    33<html>
    44  <head>
     
    2727    <input type="text" id="txf" size="120" />
    2828
    29     Event type value[[BR]]
    30     {{{- firefox : evt.type : DOMMouseScroll}}}
    31     {{{- ie, safari, opera : evt.type : mousewheel}}}[[BR]]
     29<pre>
     30Event type value[[BR]]
     31   - firefox : evt.type : DOMMouseScroll
     32   - ie, safari, opera : evt.type : mousewheel
    3233
    33     Wheel values (browser : property name : wheel values on wheel motion up/down)[[BR]]
    34     ON windows[[BR]]
    35     {{{- safari, opera, ie : evt.wheelDelta : +/- 120}}}[[BR]]
    36     {{{- firefox, opera : evt.detail : -/+ 3}}}[[BR]]
     34Wheel values (browser : property name : wheel values on wheel motion up/down)[[BR]]
     35ON windows
     36    - safari, opera, ie : evt.wheelDelta : +/- 120
     37    - firefox, opera : evt.detail : -/+ 3
    3738
    38     ON mac[[BR]]
    39     {{{- safari : evt.wheelDelta : +/- 120}}}[[BR]]
    40     {{{- opera : evt.wheelDelta : +/- 40}}}[[BR]]
    41     {{{- firefox, opera : evt.detail : -/+ 1}}}[[BR]]
     39ON mac
     40    - safari : evt.wheelDelta : +/- 120
     41    - opera : evt.wheelDelta : +/- 40
     42    - firefox, opera : evt.detail : -/+ 1
    4243
    43     Position of cursor during mouse wheel[[BR]]
    44     {{{- ie, safari, opera : evt.pageX/Y}}}[[BR]]
    45     {{{- firefox : evt.screenX/Y}}}[[BR]] 
     44Position of cursor during mouse wheel[[BR]]
     45    - ie, safari, opera : evt.pageX/Y
     46    - firefox : evt.screenX/Y 
     47</pre>
    4648  </body>
    4749</html>
    48 
    49 Based on the code above, I think dojo's fixEvent should:[[BR]]
    50 {{{- Add evt.wheelDelta for FF/Moz}}}[[BR]]
    51 {{{- Standardize the 'wheelDelta' value, or maybe add a property 'delta' with the appropriate mouse wheel delta value, across windows & mac. I am hoping these values are the same as windows in other OSes}}}[[BR]]
    52 {{{- Fix evt.pageX/Y to use evt.screenX/Y values for FF/Moz (The pageX/Y values are REALLLLY off... can't see why)}}}[[BR]]
     50}}}
     51Based on the code above, I think dojo's fixEvent should:
     52   - Add evt.wheelDelta for FF/Moz
     53   - Standardize the 'wheelDelta' value, or maybe add a property 'delta' with the appropriate mouse wheel delta value, across windows & mac. I am hoping these values are the same as windows in other OSes
     54   - Fix evt.pageX/Y to use evt.screenX/Y values for FF/Moz (The pageX/Y values are REALLLLY off... can't see why)