# iOS sticky touch events

**URL:** <https://forum.juce.com/t/ios-sticky-touch-events/8606>\
**Category:** General JUCE discussion\
**Created:** [April 30, 2012, 9:02pm UTC](https://forum.juce.com/t/ios-sticky-touch-events/8606 "2012-04-30T21:02:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [April 30, 2012, 9:02pm UTC](https://forum.juce.com/t/ios-sticky-touch-events/8606/1 "2012-04-30T21:02:05Z")

</div>

There is something not correct with the mouseUp events for multiple touches on iOS. Rather, some are getting dropped / ignored.

Specifically, I notice that if I put several fingers on the ipad, then lift them (at the same time),I don’t receive all the mouseUp calls. Some of the touches remain down.

I can reproduce this very easily in the JuceDemo code just by painting the mouse positions on the ipad:

```auto

.. in paint()

for (short i=0; i < Desktop::getInstance().getNumMouseSources(); i++)
{
            Point<int> p = Desktop::getInstance().getMouseSource(i)->getScreenPosition();
            
            g.setColour(Colours::black);
            g.drawEllipse(p.x - 10, p.y - 10, 20, 20, 3);
            
 }

```

It seems fine with just 2 fingers down, but more than that cause issues. I think if there are multiple mouseUps at about the same time, it is only seeing one of them.

Probably related to this:  
[http://www.rawmaterialsoftware.com/viewtopic.php?f=4&t=7067&hilit=ios+mouse](http://www.rawmaterialsoftware.com/viewtopic.php?f=4&t=7067&hilit=ios+mouse)

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [April 30, 2012, 9:23pm UTC](https://forum.juce.com/t/ios-sticky-touch-events/8606/2 "2012-04-30T21:23:10Z")

</div>

Here’s…a really stupid question, did you disable the “multi touch swipe” gestures in the General Settings (so that apps get all the touch events?)

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [April 30, 2012, 10:00pm UTC](https://forum.juce.com/t/ios-sticky-touch-events/8606/3 "2012-04-30T22:00:49Z")

</div>

Hahaaa!!

Hadn’t even noticed that. Cool - your’e the man Vinn.  
Is there a way to disable that programmatically, I wonder?

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [April 30, 2012, 10:25pm UTC](https://forum.juce.com/t/ios-sticky-touch-events/8606/4 "2012-04-30T22:25:27Z")

</div>

[quote=“aaronleese”]Hahaaa!!

Hadn’t even noticed that. Cool - your’e the man Vinn.  
Is there a way to disable that programmatically, I wonder?[/quote]

LOL, go me.

I doubt it can be done programatically, most apps (like “Crossfingers”) just remind the user somehow, if they need the gestures.
