1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Add Pointer::is_decidedly_dragging and could_any_button_be_click (#2979)

* Add Pointer::is_decidedly_dragging and could_any_button_be_click

This allows users to distinguish between click and drags
while they are not yet done.

* Fix warning in eframe

* fix typo
This commit is contained in:
Emil Ernerfeldt
2023-05-08 12:27:49 +02:00
committed by GitHub
parent faf31365d2
commit e9fa6c8ff6
3 changed files with 25 additions and 2 deletions

View File

@@ -557,6 +557,7 @@ impl EpiIntegration {
}
}
#[allow(clippy::unused_self)]
pub fn save(&mut self, _app: &mut dyn epi::App, _window: &winit::window::Window) {
#[cfg(feature = "persistence")]
if let Some(storage) = self.frame.storage_mut() {