Swipe to scroll down (jquery)

Discussion in 'jQuery' started by cosmin.stan, Jan 13, 2013.

  1. #1
    Hello guys,
    I'm building a website for tablets and i want o add the ability for the user to swipe down to another div.
    I've found some jquery plugins for this but only for left/right, and from some blogs that jquery doesn't support this ? Is that true and how can i overcome this ?
    I don't know javascript/jquery and i'd like some help.
     
    cosmin.stan, Jan 13, 2013 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    If you mean to scroll down to content further down the page, that's inherent in the browser, you don't have to add anything.
     
    Rukbat, Jan 13, 2013 IP
  3. cosmin.stan

    cosmin.stan Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    and it just works ? because i don't have a tablet to test this...
     
    cosmin.stan, Jan 13, 2013 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    The browser in a tablet works the same as a browser on a laptop or desktop, except that you use your finger instead of a mouse. You can scroll up, down, left or right by just dragging with your finger.
     
    Rukbat, Jan 13, 2013 IP
  5. cosmin.stan

    cosmin.stan Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I know that, but i want to scroll down a full div (full screen) when the user swipes, not 1/2.
    He swipes(tries to scroll) and the div slides to the next and so on.
     
    cosmin.stan, Jan 13, 2013 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #6
    You do that with the same code as you'd do it on a desktop-based browser. The fact that the browser is running on a tablet doesn't change the way it works. (I'd use an accordion if I had to, but I'd probably just not do it at all.)
     
    Rukbat, Jan 13, 2013 IP