fix span sizing (still some layout tho)

This commit is contained in:
2025-11-18 17:52:45 -05:00
parent 9febd03067
commit db248de8f4
5 changed files with 24 additions and 9 deletions

View File

@@ -179,7 +179,7 @@ impl<Ctx: UiCtx + 'static> CursorModule<Ctx> {
let mut sensed = false;
for (id, shape) in list.iter() {
let group = module.map.get_mut(id).unwrap();
let region = shape.to_screen(window_size);
let region = shape.to_px(window_size);
let in_shape = cursor.exists && region.contains(cursor.pos);
group.hover.update(in_shape);
if group.hover == ActivationState::Off {