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:
parent
15b0ef3259
commit
2342788973
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue