javascript - MSPointerDown event only fires on a long tap, not a quick tap -


i'm editing top nav of site work on ie10/windows8 tablets surface pro. in initial iteration, added aria-haspopup="true" hover elements , worked pretty -- 1 tap show hidden menu, second tap shows :hover effect, third tap navigate url. but, client wanted second tap navigate url instead (you know, work on pretty other device other windows one, lol), popped jquery script in there navigate destination it's supposed to.

here's url: http://www.urlgone.com/3a55ce/

i'm pretty close having work, weirdest thing happening. if tap item, goes hover state (white text) rather clicking through. if hold tap little bit longer, works! on earth going on? code:

$(document).ready(function(){     if (window.navigator.mspointerenabled) {         $('#nav a').on("mspointerdown", function(event){             window.location = $(this).attr('href');              return false;         })     } }); 

the client has confirmed it's doing on surface tablet, , i'm surprisingly able replicate problem in virtual windows 8 environment running microsoft windows simulator.

any ideas? i've been reading through ms documentation here http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx understand, mspointerdown umbrella event, , should cover of other gestured listed there -- msgesturetap, msgesturehold etc. i'm not sure console.log find out different between ineffective "tap" , effective "longer tap"...


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -