Skip to content

Commit

Permalink
add warning about behaviour with draggable window background
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-ec committed Dec 17, 2024
1 parent ad249bc commit 789d32d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/egui/src/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ impl ViewportBuilder {
}

/// macOS: Set to `true` to allow the window to be moved by dragging the background.
///
/// Enabling this feature can result in unexpected behaviour with draggable UI widgets such as sliders.
#[inline]
pub fn with_movable_by_background(mut self, value: bool) -> Self {
self.movable_by_window_background = Some(value);
Expand Down

0 comments on commit 789d32d

Please sign in to comment.