bug under iPhone
|Closed||19284||Normal||Content Timeline jQuery|
When I click left or right arrow of timeline (#t_line_left, #t_line_right) – it works only first time. Then it does not scroll the timeline to the next section. It happens only if I click the same arrow, that means to scroll in the same direction.
I found the bug with debugger.
When I click the arrow – first call goes to ‘touchStart’ where data.mousedown is set true and then ‘mouseUp’ fires and calls ‘goTo’ where data.lineMargin is modified – that’s why the call of ‘lineLeft’ or ‘lineRight’ does not work.
I suggest to add to ‘touchStart’ a simple check – something like this:
var target_id = $(evt.target).attr(‘id’);
if(target_id == ‘t_line_left’ || target_id == ‘t_line_right’) return;
I fixed my copy but I suggest you to add this fix to the next update.
Or maybe I’m wrong and your script does not need this fix… then pleas explain me why it does not work under iPhone (I think under any touch device but I haven’t checked).