Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Shake Event ignored while in modal window?

Trying the example from Kitchen Sink, I cannot get the Gesture shake to respond for any window opened as modal. However, the orientation gesture event works fine.

From Kitchen Sink:
Ti.Gesture.addEventListener('shake',function(e)
{
Titanium.UI.createAlertDialog({title:'Shake',message:'it worked!'}).show();
});

Is there any way to get the shake gesture to respond after a window that has been opened with w.open({modal:true});

Thanks in advance!

— asked May 11th 2010 by John Lullie
  • event
  • gesture
  • modal
  • shake
0 Comments

4 Answers

  • I am having the same issue. I tired to create the window and set the modal property of it to model after the shake event handler was registered. But it still did not fire. So it seems that shake event is disable

    — answered June 30th 2011 by David Dehghan
    permalink
    0 Comments
  • Is shake disabled while in a modal window?

    — answered May 12th 2010 by John Lullie
    permalink
    0 Comments
  • This is a big problem have solution?

    — answered November 24th 2011 by gianluca rettore
    permalink
    0 Comments
  • I have also this problem. Any solution for this?

    — answered April 12th 2014 by Mehul Modi
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.