1

I am creating an ASP.NET MVC application which require user to pull down to refresh when browsing the website using mobile phone. How can I do that? I don't even know how the machine recognise the gesture of pulling down to the top and intend to refresh, any suggestion?

JC YOUNG
  • 51
  • 1
  • 9
  • That's a standard gesture on Android apps, at least, so I suspect the answer is you don't do anything; the browser translates pulling down to page reload for you. – Ken Y-N Oct 08 '19 at 08:43

1 Answers1

1

There are many Pull-To-Refresh plugins, here to list some of:

However, if you prefer to handle swipe detection yourself without using plugins, you can do so by taking touchstart,touchend,mouseup,mousedown events into account. This thread provides you with good insights : How to detect Pull to refresh

A. Nadjar
  • 2,440
  • 2
  • 19
  • 20