You implemented code to: hook cursor events for all three browser event models, start and cancel both types of timers, and hook their timer events.
实现了以下功能的代码:针对所有三种浏览器事件模型连接鼠标事件,启动和取消两种类型的计时器,并连接它们的计时器事件。
A better approach is to start a timer, and have timer poke the event thread every so often to go look at the staging area for updates.
更好的方法是启动计时器,并且使计时器不时地提醒事件线程去查看中间区域,以寻找更新。
Or, when a timeout event occurs, you will cancel any timer that might be running, create the tooltip with an initial opacity of zero, start a ticker, and transition to FadeIn state.
当发生timeout事件时,将取消任何正在运行的计时器,创建一个初始不透明度为0的工具提示,启动一个断续器,并转换到FadeIn状态。
Or, when a timeout event occurs, you will cancel any timer that might be running, create the tooltip with an initial opacity of zero, start a ticker, and transition to FadeIn state.
当发生timeout事件时,将取消任何正在运行的计时器,创建一个初始不透明度为0的工具提示,启动一个断续器,并转换到FadeIn状态。
应用推荐