return TextWindowType::Widget coords mode

This commit is contained in:
yggverse 2025-02-04 18:23:51 +02:00
parent b995482e45
commit 7800ec6c26

View File

@ -355,7 +355,7 @@ impl Gemini {
move |_, _, window_x, window_y| { move |_, _, window_x, window_y| {
// Detect tag match current coords hovered // Detect tag match current coords hovered
let (buffer_x, buffer_y) = text_view.window_to_buffer_coords( let (buffer_x, buffer_y) = text_view.window_to_buffer_coords(
TextWindowType::Text, TextWindowType::Widget,
window_x as i32, window_x as i32,
window_y as i32, window_y as i32,
); );
@ -394,7 +394,7 @@ impl Gemini {
move |_, _, window_x, window_y| { move |_, _, window_x, window_y| {
// Detect tag match current coords hovered // Detect tag match current coords hovered
let (buffer_x, buffer_y) = text_view.window_to_buffer_coords( let (buffer_x, buffer_y) = text_view.window_to_buffer_coords(
TextWindowType::Text, TextWindowType::Widget,
window_x as i32, window_x as i32,
window_y as i32, window_y as i32,
); );
@ -439,7 +439,7 @@ impl Gemini {
move |_, window_x, window_y| { move |_, window_x, window_y| {
// Detect tag match current coords hovered // Detect tag match current coords hovered
let (buffer_x, buffer_y) = text_view.window_to_buffer_coords( let (buffer_x, buffer_y) = text_view.window_to_buffer_coords(
TextWindowType::Text, TextWindowType::Widget,
window_x as i32, window_x as i32,
window_y as i32, window_y as i32,
); );