mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 22:57:59 +00:00
Bring the drop position into .NET and add the DOM hit test
This commit is contained in:
6 files changed
+128
-2
No files matched your search
@@ -46,7 +46,14 @@ public partial class RustService
|
||||
and not TauriEventType.UNKNOWN
|
||||
and not TauriEventType.PING)
|
||||
{
|
||||
this.logger!.LogDebug("Received Tauri event {EventType} with {NumPayloadItems} payload items.", tauriEvent.EventType, tauriEvent.Payload.Count);
|
||||
//
|
||||
// Log every event but the drag-over ones: those arrive about ten times per
|
||||
// second for as long as a drag lasts, and one line each would bury everything
|
||||
// else in the log.
|
||||
//
|
||||
if(tauriEvent.EventType is not TauriEventType.FILE_DROP_OVER)
|
||||
this.logger!.LogDebug("Received Tauri event {EventType} with {NumPayloadItems} payload items.", tauriEvent.EventType, tauriEvent.Payload.Count);
|
||||
|
||||
await MessageBus.INSTANCE.SendMessage(null, Event.TAURI_EVENT_RECEIVED, tauriEvent);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user