1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Mouse click and colour tweaks. Changed OSX URL reading to avoid local caching.

This commit is contained in:
Julian Storer 2011-09-16 22:07:47 +01:00
parent 24d40bdbb0
commit 7f4e56191a
3 changed files with 100 additions and 129 deletions

View file

@ -325,7 +325,7 @@ public:
for (int i = 1; i < numElementsInArray (mouseDowns); ++i)
{
if (mouseDowns[0].canBePartOfMultipleClickWith (mouseDowns[i], (int) (MouseEvent::getDoubleClickTimeout() * (1.0 + 0.25 * (i - 1)))))
if (mouseDowns[0].canBePartOfMultipleClickWith (mouseDowns[i], MouseEvent::getDoubleClickTimeout() * jmin (i, 2)))
++numClicks;
else
break;