javascript - Track scrubbing in webkit controller based on time control is clicked and held? -


what i'm trying accomplish track scrubbing in webkit controller. i'd set onclick function skip forward or when appropriate directional button clicked, scrub backwards or forwards if control clicked , held.

however, i'm thoroughly stuck on js necessary not differentiate clicks , click holds measure time held. once time held determined, should simple setting time itunes.playerposition +/- clicktime

for onclick event, use settimeout determine difference between clicking , clicking , holding?

also, how measure time held using javascript?

i apologize vagueness of question, i'm bit new js , can provide hugely, hugely appreciated. if more details needed, best provide them.

i'm not sure onclick, i'd use onmousedown , onmouseup. set time onmousedown dragging has started, , check flagged time onmouseup.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -