Skip to content

Commit

Permalink
Fix wrong replacement function in deprecation notice of `drag_release…
Browse files Browse the repository at this point in the history
…d*` (emilk#4314)

Quick thing I noticed while updating a crate to egui 0.27.
  • Loading branch information
sornas authored and hacknus committed Oct 30, 2024
1 parent 9b12042 commit 05665a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,13 @@ impl Response {

/// The widget was being dragged, but now it has been released.
#[inline]
#[deprecated = "Renamed 'dragged_stopped'"]
#[deprecated = "Renamed 'drag_stopped'"]
pub fn drag_released(&self) -> bool {
self.drag_stopped
}

/// The widget was being dragged by the button, but now it has been released.
#[deprecated = "Renamed 'dragged_stopped_by'"]
#[deprecated = "Renamed 'drag_stopped_by'"]
pub fn drag_released_by(&self, button: PointerButton) -> bool {
self.drag_stopped_by(button)
}
Expand Down

0 comments on commit 05665a3

Please sign in to comment.