Error with touched

80 views
Skip to first unread message

deHimer nono

unread,
Mar 11, 2015, 9:57:58 AM3/11/15
to threed...@googlegroups.com
results = drag.hijack( event, "draginit", dd ); //sometime change dd.propagates to false and it lead to problem
->
if ( !dd.propagates ) return; //will return
->
$event.add( drag.touched, "touchmove touchend", drag.handler, dd ); //not be added
->
touchmove touchend events not triggered
->
in hadler not will be handled touchend
dd.dragging = drag.touched = false; // deactivate element 

AND AS RESULT IN NEXT ATTEMPTION OF init:
if ( drag.touched ) return;
will always return break;


I use dragging on element with iScroll5

deHimer nono

unread,
Mar 11, 2015, 10:04:15 AM3/11/15
to threed...@googlegroups.com
I changed 

if ( !dd.propagates ) return;

to

if ( !dd.propagates )
{
    $event.add( drag.touched, "touchmove touchend", drag.handler, dd );
    return;
};

One note: this problem was on touch devices (samsung galaxy tap, iPad)
Reply all
Reply to author
Forward
0 new messages