Consider what behavior is needed should a mousemove event occur in Inactive state: the actions and transition are the same as for a mouseover event in Inactive state.
考虑一下在Inactive状态下发生mousemove事件时需要什么行为:操作和转换与Inactive状态下的mouseover事件一样。
When that click comes, you then want to install the mousemove and mouseup handlers.
当单击发生时,就需要安装mousemove和mouseup 处理程序。
When the cursor then moves, any browser will generate a mousemove or mouseout event in Inactive state.
然后,当鼠标移动时,任何浏览器都会在Inactive 状态下生成mousemove或mouseout事件。
Your widget will need to respond to three different events in the Pause state: the mousemove, mouseout, and timeout events.
部件在Pause状态下需要响应三个事件:mousemove、mouseout和timeout事件。
In the design phase, you did not anticipate that mousemove or mouseout events would occur in Inactive state.
在设计阶段,没有预料到在Inactive状态下会出现mousemove或mouseout事件。
Intuitively, a mouseover event should precede a mousemove event, causing a transition to Pause state, which does expect mousemove events (see Figure 5 in Part 1).
从直觉上看,在mousemove事件前面应该出现mouseover事件,这会导致转移到Pause状态,而Pause状态是可以处理mousemove事件的(参见第1部分中的图5)。
Intuitively, a mouseover event should precede a mousemove event, causing a transition to Pause state, which does expect mousemove events (see Figure 5 in Part 1).
从直觉上看,在mousemove事件前面应该出现mouseover事件,这会导致转移到Pause状态,而Pause状态是可以处理mousemove事件的(参见第1部分中的图5)。
应用推荐