BTT + Snap regions + Affinity Photos bug

Note: Before bug reporting, please make sure you have tried the latest (alpha) version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.

Describe the bug
When switching back to a window FROM Affinity Photo 2.0.0 and that window has Snap areas enabled and you start dragging this window into the Snap region immediately after switching apps, BTT hangs and has to be restarted. Freak bug only happening with Affinity Photo 2.0.0 and nothing else AFAIK. Only happens if moving the window early on after switching way from Affinity. If you wait like 5-10 secs before moving, it won't happen.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
Macbook Pro 2021 M1 Max

Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)

Device information:

  • Type of Mac: Macbook pro 2021 m1 max
  • macOS version: Ventura .1
  • BetterTouchTool version: (please post the exact version - not just "the latest one") 3.952 2117

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):
Let me know what you need.