1

I'd like to catch an event of scroll or touchmove with

$(document).on('scroll touchmove', function() {});

But that event is not working. Because i've used overflow:hidden; How can i catch these events and use custom animation instead of classic scrolling.

1 Answers1

1

Check this

$(document).on('scroll touchmove', function() {
  console.log('scroll working...');
 });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<body style="min-height:1120px;"></body>
Ranjeet Singh
  • 924
  • 5
  • 11