ng-click on firing on mobile or tablet devices

前端 未结 3 974
我在风中等你
我在风中等你 2020-12-10 15:33

On page load i have a controller that calls a service and then binds the returned data to some $scope.objects:

app.controller(\"MainController\", function($s         


        
3条回答
  •  盖世英雄少女心
    2020-12-10 15:39

    Try to add the ngTouch. From documentation:

    A more powerful replacement for the default ngClick designed to be used on touchscreen devices. Most mobile browsers wait about 300ms after a tap-and-release before sending the click event. This version handles them immediately, and then prevents the following click event from propagating.

    Requires the ngTouch module to be installed.

提交回复
热议问题