javascript - Trouble with jquery and fastclick at kindle fire -


i have web page open jquery calculator. page works safari desktop , chrome android devices beacause use embedded dataabse.

when navigates page table device interaction calculator slow, used fastclick library , problem solved. library had manual add jquery classes button elements such ui-state-hover because of stoppropagation() , preventdefault().

the calculator fast , hover color works great excect @ kindle fire. when remove jquery classes or try blur button seems not work. tried to ovveride css rule buttons not focus when click them. nothing seems work. saw library not support silk browser of device fixed 300ms delay.

is there way override kindle fire jquery events? problem silk browser?

my code is:

document.getelementbyid("inv_calc_button_" + id).addeventlistener('touchend', function(event) {     event.stoppropagation();     event.preventdefault();     _function();     $("#inv_calc .inv_calc_button").removeclass("ui-state-hover");     $(this).addclass("ui-state-hover"); }, false);  if (!(/\bsilk\b/.test(navigator.useragent))) {     document.getelementbyid("inv_calc_button_" + id).addeventlistener('click', function(event) { _function(); }, false); } 

this how override css of button opens calculator , works except kindle fire:

.item_table button.ui-state-hover, .item_table button.ui-state-focus, .item_table button.ui-state-highlight { border: 1px solid #cccccc !important; background: #f6f6f6 url(/webfile?name=css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x !important; font-weight: bold !important; color: #1c94c4 !important; } 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -