View Full Version : Cardswitch not working on ios devices. Two taps to go back.

9 Feb 2011, 7:42 AM

I have a card layout (based on the Kitchen sink example) and trying to change cards with setActiveItem. Everything works fine in the iPhone Emulator and desktop webkit browsers but when tested on a device (iPad, iPhone 3G, iPhone 4) a problem appears. The cardswitch will not fire until a second tap is made anywhere on the screen.

There is a main navigation panel (Activity Stream, Contacts, etc). An itemtap calls setActiveItem and loads the Activity Stream Panel with a Dataview item. An itemtap on an AS item loads an Item Detail panel. The problem occurs when I try to navigate back to the AS by clicking the back button in the toolbar. The panel slide does not initially occur. If one more interaction is made with the screen (eg. touch anywhere on the screen) the panel slide will fire.

Are there any known issues with setActiveItem? Are there any known issues with setActiveItem and ios devices? Has anyone come across this behavior?