Skip to content

Commit

Permalink
remove cursor blink to save cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
reykjalin committed Mar 24, 2024
1 parent 710bf44 commit 2898f3a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,7 @@ impl eframe::App for TemplateApp {
}

// The cursor itself.
if content_ui.memory(|m| m.has_focus(id))
&& egui_animation::animate_continuous(
ui,
egui_animation::easing::linear,
Duration::new(1, 500000),
0.0,
) < 0.6
{
if content_ui.memory(|m| m.has_focus(id)) {
painter.line_segment([top, bottom], (cursor_stroke.width, cursor_stroke.color));
}

Expand Down

0 comments on commit 2898f3a

Please sign in to comment.