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:
parent
374f7b2e5a
commit
0093320a06
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue