senchalabs/jQTouch — Issue #305: useFastTouch and .live() not working r166
Author: Hardan
Created: 2011-10-21 02:54:02+00:00
State: open

It seems that useFastTouch: true on jQTouch is not speeding things up.
Setting it to true or false causes no change.

As i've read somewhere, it might also be affecting .live('click'), .live('tap'), .click() and .tap(), as they sometimes fail on complex div structures created with jquery (example below):

Cancelar

Cidades

javascript (inside $(document).ready(function(){});

$('#citiesList li a').tap(function() { // <---------------------------------- This is NEVER called! (also $('.cityLink').tap(function(){}) and variants)
console.log('set new city');
currentCity = $(this).html();
$('#cityName').html(currentCity);
updateHomeOffers();
});

function updateCities() {
$('#cidades li.sep').remove();
$('#cidades li.element').remove();

var firstLetter = null;
var citiesString = '';
cities.forEach(function(city){
if ( !firstLetter || city.substring(0, 1) != firstLetter ) {
firstLetter = city.substring(0, 1);
$('#citiesList').append('
' + firstLetter + '
');
}
$('#citiesList').append($('
' + city + '
'));
});
}