Skip to content

Commit

Permalink
Add reference to ScrollArea::drag_to_scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
KYovchevski committed Jun 21, 2023
1 parent 493e3ac commit e8865d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/egui_extras/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ impl<'a> TableBuilder<'a> {
self.vscroll(vscroll)
}

/// Enables scrolling the table's contents using mouse drag (default: `true`)
/// Enables scrolling the table's contents using mouse drag (default: `true`).
///
/// See [`ScrollArea::drag_to_scroll`] for more.
pub fn drag_to_scroll(mut self, drag_to_scroll: bool) -> Self {
self.scroll_options.drag_to_scroll = drag_to_scroll;
self
Expand Down

0 comments on commit e8865d1

Please sign in to comment.