angularjs - Leaflet click event not working on iPad -
i'm using angular leaflet directive. working on laptop. on ipad, double click working click event not working @ all. have 1 event handler click doesn't triggered.
$scope.events = { map: { enable: ['mousedown', 'dblclick', 'click'], logic: 'broadcast' } }; $scope.$on('leafletdirectivemap.mousedown', function(event) { alert('click'); }); $scope.$on('leafletdirectivemap.click', function(event) { alert('click'); }); $scope.$on('leafletdirectivemap.dblclick', function(event) { alert('dbclick'); });
double click event gets triggered other ones not. can try debug this?
checkout https://github.com/angular/material/issues/1300. having below code fixed issue us,
$mdgestureprovider.skipclickhijack();
Comments
Post a Comment