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
Post a Comment