Event 事件调度和DOM事件流

2018-11-07  本文已影响0人  ft207741

Menu

3.1 事件调度和DOM事件流
3.2 默认动作和可取消事件
3.3 同步和异步事件
3.4 Trusted events
3.5 Activation triggers and behavior(激活 触发器 和 行为)
3.6 构建鼠标和键盘事件
4 Event Types
4.1 User Interface Events
4.1.1 nterface UIEvent
4.1.2 UI Event Types
4.2 Focus Events
4.2.2 焦点事件顺序
4.2.4. Focus Event Types
4.3 Mouse Event
4.3.4 Mouse Event Types
4.4. Wheel Events
4.4.2. Wheel Event Types
4.5. Input Events
4.5.3. Input Event Types
4.6. Keyboard Events

3.1 事件调度和DOM事件流

3.2 默认动作和可取消事件

3.3 同步和异步事件

3.4 Trusted events

3.5 Activation triggers and behavior(激活 触发器 和 行为)

EXAMPLE:HTML和SVG都有一个表示链接的<a>元素。<a>元素的相关激活触发器是对<a>元素的文本或图像内容的单击事件,或当<a>元素具有焦点时具有键属性值“Enter”键的keydown事件。<a>元素的激活行为通常是,在外部链接的情况下,将窗口的内容更改为新文档的内容,或者在内部链接的情况下,更改当前文档相对于新锚的位置。


3.6 构建鼠标和键盘事件

4 Event Types

4.1 User Interface Events


4.1.2 UI Event Types

4.2 Focus Events
4.2.2 焦点事件顺序
4.2.4. Focus Event Types

4.3 Mouse Event
4.3.4 Mouse Event Types

4.4. Wheel Events

用户环境可以配置为将垂直滚动与沿y轴旋转相关联,将水平滚动与沿x轴旋转相关联,将缩放与沿z轴旋转相关联。

A user’s environment settings can be customized to interpret actual rotation/movement of a wheel device in different ways. One movement of a common "dented" mouse wheel can produce a measurement of 162 pixels (162 is just an example value, actual values can depend on the current screen dimensions of the user-agent). But a user can change their default environment settings to speed-up their mouse wheel, increasing this number. Furthermore, some mouse wheel software can support acceleration (the faster the wheel is rotated/moved, the greater the delta of each measurement) or even sub-pixel rotation measurements. Because of this, authors can not assume a given rotation amount in one user agent will produce the same delta value in all user agents.

4.4.2. Wheel Event Types

4.5. Input Events
4.5.3. Input Event Types

4.6. Keyboard Events
4.6.1. Interface KeyboardEvent
4.6.4. Keyboard Event Types
上一篇 下一篇

猜你喜欢

热点阅读