javascript - How can I know whether the scroll of the user is UP or DOWN? -
I want to determine the book of users. I am using jQuery ..and jquery is a .scroll event. But the .scroll event can not determine whether the user is scrolling down or up the page.
You can start with a variable like this:
< Code> var position = $ (window) .scrollTop (); // should start with 0
and after that it monitors whether the scrolltop is rising up or down:
$ ( Window) .scroll (function) (Var scroll = $ (window) .scrollTop (); if (scroll> position) {console.log ("scroll downwards");} else {console.log ( "Scroll up");} position = scroll;}); = "snippet-code snippet-present-hidden"> var status = $ (window) .scrollTop (); $ (window) .scroll (function () {var scroll = $ (window) .scroll Top (); if (scroll and position; position) {console.log ("scroll downward"); else {console.log ("scrolling upwards");} position = scroll;}); < / Code>
& lt; script src = "https: / /ajax.googleapis.com/ajax/libs/jquery /2.1.1/jquery.min.js"></script>p style = "font-size: 40px;" & gt; Advertise on this website about life during life during life For the best time the information was received Phasellus feigiat gets Cloud ID Futurebag Magna, for now The result is the most important thing with the workers who work with colleagues and widespread that there is no source of Magnum, just amazing Latins, but it still does not. It was completely finished, but it was actually free download. Cubatur Pulvinar, life is spent from time to time, but it is not for any cost, but it is important for our customers. On a large scale, since one, during this time, you will be ready for your life for your life. Nula Control NIFT, famous places in the Bracketist Brains on the Exgee Quiz, it is completely different in the temporary time. Regularly time has been told about the timeframe gap and the most important aspects for men's women. The intervals and the most important aspects of men's women have been told about. Thanks to the name of Gregory Scalers for Cross Order Audio, Octa Egate Maurice Egate, Dignisim Ratermum Morris Nalla Portrait Leo NAC, said Morrisi, Anne non-excruciating portitator, by any means, a Scalarisk Ridge. Not a good option for your customers. Advertise on this website as Sapphire Fringilla Mile, and above there are no Dept. for any kind of value. About the Penders Deuce Ritter Vitalata Same Ejet Fingilla Pillestake or Eagle Nola Stamps Mechanis lasinia colippum sapper To learn about you, Pellentesque id augue life Leo accumsan vehicula. So far, only ultrasites or other ultras can be used. Gift for life during the last day of his life, according to our competitor, a non-fundamental material, according to our opponent, a physician has a gift for qualification for the Mistye's Holidays class at McNeans Dipibus Kim and Pulvinier Times Mastens. Ease of use to use Users were asked the following questions: In future, or at the time of time, or later, or later will be extended. Sd Fathertrak lasso bean, Queen design amattslamskor a. Vivamus AC Agu Independence is not fully functioning. Morabi smooth running vehicles. The money prices for highways may be necessary to subscribe to cross There is no difference through the integer Fuse EU Matisse Anime works with time and time for a large time mass and mass Acetic Masala & Lt; / P & gt;
Comments
Post a Comment