1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

trigger check for external drag when JUCE is no longer the foreground process

This commit is contained in:
Dave 2019-06-27 08:56:26 +01:00
parent dd9802e265
commit 5dc9f59697

View file

@ -156,7 +156,7 @@ public:
{
auto now = Time::getCurrentTime();
if (getCurrentlyOver() != nullptr)
if (getCurrentlyOver () != nullptr && Process::isForegroundProcess ())
lastTimeOverTarget = now;
else if (now > lastTimeOverTarget + RelativeTime::milliseconds (700))
checkForExternalDrag (details, screenPos);