Browse Source

fix delay on cursor update

master
yggverse 2 months ago
parent
commit
0d55d492f3
  1. 6
      src/app/browser/window/tab/item/page/content/text/gemini/reader.rs

6
src/app/browser/window/tab/item/page/content/text/gemini/reader.rs

@ -196,9 +196,12 @@ impl Reader { @@ -196,9 +196,12 @@ impl Reader {
// Toggle cursor
gobject.set_cursor_from_name(Some("pointer"));
// Show tooltip
// Show tooltip | @TODO set_gutter option?
gobject.set_tooltip_text(Some(uri.to_string().as_str()));
// Any signal required to apply changes immediately @TODO power safe issue?
gobject.emit_toggle_overwrite();
return;
}
}
@ -207,6 +210,7 @@ impl Reader { @@ -207,6 +210,7 @@ impl Reader {
// Restore defaults
gobject.set_cursor_from_name(Some("text"));
gobject.set_tooltip_text(None);
gobject.emit_toggle_overwrite();
}
}); // @TODO may be expensive for CPU, add timeout?

Loading…
Cancel
Save