Chromium Code Reviews| Index: ppapi/c/pp_input_event.h |
| =================================================================== |
| --- ppapi/c/pp_input_event.h (revision 91508) |
| +++ ppapi/c/pp_input_event.h (working copy) |
| @@ -238,11 +238,11 @@ |
| uint32_t modifier; |
| /** |
| - * Indicates the amount vertically and horizontally the user has requested |
| - * to scroll by with their mouse wheel. A scroll down or to the right (where |
| - * the content moves up or left) is represented as positive values, and |
| - * a scroll up or to the left (where the content moves down or right) is |
| - * represented as negative values. |
| + * This value indicates the amount vertically and horizontally the user has |
|
der Springer
2011/08/09 20:40:40
Horizontal only. And this sentence is pretty awkw
jond
2011/08/10 21:05:59
Done.
|
| + * requested to scroll by with their mouse wheel. A scroll down or to the |
| + * right (where the content moves up or left) is represented as positive |
| + * values, and a scroll up or to the left (where the content moves down or |
|
der Springer
2011/08/09 20:40:40
Remove references to "up/down" in this section.
jond
2011/08/10 21:05:59
Done.
|
| + * right) is represented as negative values. |
| * |
| * The units are either in pixels (when scroll_by_page is false) or pages |
| * (when scroll_by_page is true). For example, delta_y = -3 means scroll up 3 |
| @@ -260,7 +260,27 @@ |
| */ |
| float delta_x; |
| - /** This value represents */ |
| + /** |
| + * This value indicates the amount vertically and horizontally the user has |
|
der Springer
2011/08/09 20:40:40
Vertical only. Also, this sentence is awkward (se
jond
2011/08/10 21:05:59
Done.
|
| + * requested to scroll by with their mouse wheel. A scroll down or to the |
| + * right (where the content moves up or left) is represented as positive |
|
der Springer
2011/08/09 20:40:40
Remove references to "left/right" in this section.
jond
2011/08/10 21:05:59
Done.
|
| + * values, and a scroll up or to the left (where the content moves down or |
| + * right) is represented as negative values. |
| + * |
| + * The units are either in pixels (when scroll_by_page is false) or pages |
| + * (when scroll_by_page is true). For example, delta_y = -3 means scroll up 3 |
| + * pixels when scroll_by_page is false, and scroll up 3 pages when |
| + * scroll_by_page is true. |
| + * |
| + * This amount is system dependent and will take into account the user's |
| + * preferred scroll sensitivity and potentially also nonlinear acceleration |
| + * based on the speed of the scrolling. |
| + * |
| + * Devices will be of varying resolution. Some mice with large detents will |
| + * only generate integer scroll amounts. But fractional values are also |
| + * possible, for example, on some trackpads and newer mice that don't have |
| + * "clicks". |
| + */ |
| float delta_y; |
| /** |