title: iPhone Simulator always generates two shake events? (UIScrollview not scrolling for second event)
body: <p>When I select "Shake Gesture" from the Hardware menu in the iPhone simulator, my first responder always receives <strong>two</strong> shake events (with a few milliseconds in between).</p>
  
  <p>Unfortunately these two events in the simulator lead to a problem with an <code>UIScrollview</code> that should scroll to a specific position - what it does, but only for the first event.</p>
  
  <p>So I have the following two questions (that are connected to each other somehow)...</p>
  
  <h2>Question 1</h2>
  
  <p>Why does the simulator generate two shake events for one "Shake Gesture"?<br>
  <em>Note: These two events do not occur when testing on the real device. A shake on the real iPhone always produces <strong>one</strong> event.<br></em></p>
  
  <h2>Question 2</h2>
  
  <p>Is there a way to make sure two subsequent calls of <code>[myScrollView setContentOffset:CGPointMake(x,0) animated:YES];</code> get both executed properly?<br>
  <em>Note: What I find interesting - when I set <code>animated:</code> to <code>NO</code> in the <code>setContentOffset</code> call, it works flawlessly - both calls are executed! Unfortunately this is not an option for the App I'm working on.</em></p>
  
  <p>Btw, the problem is easy to reproduce. Just make two calls of <code>setContentOffset</code> with animation to an <code>UIScrollview</code> and find only the first executed...<br></p>
  
  <pre><code>[myScrollView setContentOffset:CGPointMake(300,0) animated:YES]; //this one works
  [myScrollView setContentOffset:CGPointMake(100,0) animated:YES]; //this one not
  </code></pre>
  
  <p>Thanks in advance!</p>
  
  <p>Best,
  Markus</p>