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?
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