use rat_event::util::MouseFlags; use rat_event::{ct_event, ConsumedEvent, HandleEvent, MouseOnly, Outcome, Regular}; use rat_focus::{FocusFlag, HasFocus}; use rat_reloc::{relocate_area, RelocatableState}; use rat_scrolled::event::ScrollOutcome; use rat_scrolled::{Scroll, ScrollArea, ScrollAreaState, ScrollState}; use rat_text::line_number::{LineNumberState, LineNumbers}; use rat_widget::util::revert_style; use ratatui::buffer::Buffer; use ratatui::layout::Rect; use ratatui::prelude::{StatefulWidget, Style}; use ratatui::widgets::Block; #[derive(Debug, Default)] pub struct EndlessScroll<'a> { style: Style, focus_style: Option