This reduces the time between timetick events to about 12 milliseconds.
这会将 timetick事件之间的时间减少到大约12 毫秒。
But these timeout and timetick functions do not become methods of any object.
但是,这些timeout和timetick函数不会成为任何对象的方法。
Each time a timetick event occurs in FadeIn state, the handleEvent method will call a function that increases the opacity of the tooltip slightly.
每当在FadeIn状态下发生timetick事件时,handleEvent方法将调用一个函数,它略微增加工具提示的不透明度。
If your timetick event handler takes longer than this, or there is contention for the processor, your animations might become jerky, or the browser might become unresponsive.
如果timetick事件处理器花费的时间超过这个值,或者有其他活动争夺处理器,那么动画可能变得不平滑,或者浏览器变得响应缓慢。
They create a trivial timer event object that contains only an event type -- either timeout or timetick -- and pass it to the same handleEvent method that handles cursor events.
它们仅仅创建一个简单的计时器事件对象,其中只包含一种事件类型 ——timeout或者timetick,并将它传递给处理鼠标事件的同一个 handleEvent方法。
They create a trivial timer event object that contains only an event type -- either timeout or timetick -- and pass it to the same handleEvent method that handles cursor events.
它们仅仅创建一个简单的计时器事件对象,其中只包含一种事件类型 ——timeout或者timetick,并将它传递给处理鼠标事件的同一个 handleEvent方法。
应用推荐