changePage “jumps” back to old page on android

changePage “jumps” back to old page on android

I've a big problem with a jQuery Mobile Application: I'm using custom functions (they are triggered by onClick) to switch the page with currentPage.

It only happens on Android-Devices with the integrated browser (not Google Chrome). iOS and Chrome works nice.

After clicking on an element, the animation started but just before it ends, it switches back to the old page. After a half second, it switches back to the new.

I made a movie of the bug here: http://www.youtube.com/watch?v=sXxvVUxniNg

Thank you very much!

Code (CoffeeScript):

  1. class Guide
  2.     
  3.     @categoriesLoaded = false
  4.     
  5.     @loadSearch: ->
  6.         
  7.         $.mobile.changePage $("#guide"),
  8.             transition: 'slide'
  9.             changeHash: false
  10.         
  11.         if !@categoriesLoaded
  12.         
  13.             @categoriesLoaded = true
  14.             
  15.             GuideApi.getCategories (data) ->
  16.                 output = Mustache.render $("#tmpl-guide-categories-select").html(), 
  17.                     categories: data
  18.                 
  19.                 $("#guide-search-category").append output
  20.                 
  21.                 $("#guide-search-category").val($("#guide-search-category option:first").val());

  22. window.WgSwitchGuide = ->
  23.         Guide.loadSearch