1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed an incorrect multi-touch index in a recent commit

This commit is contained in:
hogliux 2017-10-13 14:42:08 +01:00
parent 374f7b2e5a
commit 0093320a06

View file

@ -42,7 +42,9 @@ public:
if (touchIndex < 0)
{
touchIndex = jmax (0, currentTouches.indexOf ({}));
auto emptyTouchIndex = currentTouches.indexOf ({});
touchIndex = (emptyTouchIndex >= 0 ? emptyTouchIndex : currentTouches.size());
currentTouches.set (touchIndex, info);
}