We can solve this problem by Adding delay to window scroll event. If user is not scrolling for last one second, then We can confirm that the user stopped scrolling.

Script 

In this below script window was bonded to scroll event
Scroll event will be triggered after 1 second ( 1000 milli seconds)
function myCtrl($scope, $window, $timeout) {
   $scope._timeout  = null;
   angular.element($window).bind(
    "scroll", function() {
         if($scope._timeout){ //if there is already a timeout in process cancel it
          $timeout.cancel($scope._timeout);
         }
         $scope._timeout = $timeout(function(){
           $scope._timeout = null;
           alert('scroll stopped');
         },1000);
   });  
}

5 comments:

  1. Reading of the books is very good hobby. Many of the people adopt it but now a days many people read the books through the internet but they cannot get that information from internet which is in the book. Much information about the libararies is on best essay writing service uk which we can know easily when we start to take a look of it.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Book reading is a good hobby my hobby is paly cricket that why I get Assignment Help to play cricket with my friends all the time.

    ReplyDelete
  4. most of the users stopped reading about angular JS Best VPN for Firestick because he has lot of excuse to share with you like don't understand, proble of creating a code. and other issue.

    ReplyDelete
  5. The growing demand for electric cars (EVs) is propelling the battery electrolyte market market growth, owing to the growing focus on sustainable development and awareness of the negative effects of utilising petroleum-based automobiles. Furthermore, governments in a number of countries are providing subsidies and implementing favourable policies to encourage the adoption of electric vehicles, which is adding to market growth.


    Also Read: soy protein market, baseball equipment market, vegetable protein market

    ReplyDelete

Blogroll

Popular Posts