1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -04:00

Fix: repaint on drag-and-drop files (#7953)

When someone drag-and-drops files onto an egui/eframe app, it makes
sense to wake it up
This commit is contained in:
Emil Ernerfeldt
2026-03-03 17:02:30 +01:00
committed by GitHub
parent b733679760
commit ee3e73bdf9

View File

@@ -661,6 +661,8 @@ impl InputState {
if self.pointer.wants_repaint()
|| self.wheel.unprocessed_wheel_delta.abs().max_elem() > 0.2
|| !self.events.is_empty()
|| !self.raw.hovered_files.is_empty()
|| !self.raw.dropped_files.is_empty()
{
// Immediate repaint
return Some(Duration::ZERO);