mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #6011 - pcwalton:ns_to_ms, r=jdm
r? @jdm (or whoever) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6011) <!-- Reviewable:end -->
This commit is contained in:
commit
885068207f
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ impl ScrollingTimer {
|
|||
Ok(ToScrollingTimerMsg::ScrollEventProcessedMsg(timestamp)) => {
|
||||
let target = timestamp as i64 + TIMEOUT;
|
||||
let delta_ns = target - (time::precise_time_ns() as i64);
|
||||
sleep_ms((delta_ns / 1000) as u32);
|
||||
sleep_ms((delta_ns / 1000000) as u32);
|
||||
self.compositor_proxy.send(Msg::ScrollTimeout(timestamp));
|
||||
}
|
||||
Ok(ToScrollingTimerMsg::ExitMsg) | Err(_) => break,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue