Fix wrong replacement function in deprecation notice of `drag_released*` (#4314)

Quick thing I noticed while updating a crate to egui 0.27.
This commit is contained in:
Gustav Sörnäs 2024-04-03 10:02:29 +02:00 committed by GitHub
parent 15b0ef3259
commit 2342788973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}