mirror of
https://github.com/danbulant/cushy
synced 2026-06-09 01:20:39 +00:00
removed comment
This commit is contained in:
parent
36895c3897
commit
1d80f8467c
2 changed files with 0 additions and 4 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -728,7 +728,6 @@ dependencies = [
|
||||||
"kludgine",
|
"kludgine",
|
||||||
"palette",
|
"palette",
|
||||||
"pollster",
|
"pollster",
|
||||||
"rustix",
|
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -127,9 +127,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
fn hover(&mut self, local: Point<Px>, context: &mut EventContext<'_, '_>) {
|
fn hover(&mut self, local: Point<Px>, context: &mut EventContext<'_, '_>) {
|
||||||
// translate location to local location
|
|
||||||
// * effective zoom
|
|
||||||
|
|
||||||
let Some(size) = context.last_layout().map(|rect| rect.size) else { return };
|
let Some(size) = context.last_layout().map(|rect| rect.size) else { return };
|
||||||
|
|
||||||
let offset = self.layers.map(|layers| self.focus.get().world_coordinate(layers));
|
let offset = self.layers.map(|layers| self.focus.get().world_coordinate(layers));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue