1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00

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

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