breaks ng-click and ui-sref in touch devices
Exlord opened this issue · 1 comments
Hi, first of tank you for this directive.
But i have a big problem, when using fullpage+this directive+ui-router my ng-click
and ui-sref
are not clickable anymore in mobile devices or chrome's device emulator (F12 then ctrl+shift+m), I can see in the code that they have href
attribute but they won't respond to touch.
I added ng-touch
module and set $touchProvider.ngClickOverrideEnabled(true);
, that fixed the ng-click
but ui-sref
's still not working.
I looked throw the fullpage code and i think its handling of touch events is causing this.
Can you make a fix for this too?? would really appreciate it ...
I found the problem:
line 1182
function touchStartHandler(event){
event.preventDefault();
var e = event.originalEvent;
//stopping the auto scroll to adjust to a section
if(options.fitToSection){
$htmlBody.stop();
}
if(isReallyTouch(e)){
var touchEvents = getEventsPage(e);
touchStartY = touchEvents.y;
touchStartX = touchEvents.x;
}
}
if i comment the event.preventDefault();
it works ...
Ok seems this has been fixed in the fullpage's new release .