Remove debug wiring
This commit is contained in:
parent
45e4e3354e
commit
1fc6276eab
2 changed files with 8 additions and 58 deletions
|
@ -31,7 +31,6 @@ use std::{
|
|||
ops::{Deref, DerefMut, Range},
|
||||
sync::Arc,
|
||||
};
|
||||
use time::Instant;
|
||||
|
||||
pub struct Presenter {
|
||||
window_id: usize,
|
||||
|
@ -318,8 +317,14 @@ impl Presenter {
|
|||
}
|
||||
}
|
||||
|
||||
if cx.is_topmost_window_for_position(self.window_id, *position) {
|
||||
let t0 = std::time::Instant::now();
|
||||
let is_topmost_window =
|
||||
cx.is_topmost_window_for_position(self.window_id, *position);
|
||||
println!("is_topmost_window => {:?}", t0.elapsed());
|
||||
if is_topmost_window {
|
||||
let t1 = std::time::Instant::now();
|
||||
cx.platform().set_cursor_style(style_to_assign);
|
||||
println!("set_cursor_style => {:?}", t1.elapsed());
|
||||
}
|
||||
|
||||
if !event_reused {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue