Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7825519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:02:38+00:00 2026-06-02T09:02:38+00:00

I am developing a webpage which has six items. I am trying to add

  • 0

I am developing a webpage which has six items. I am trying to add a swipe event to the website using PADILICIOUS, but it’s not working. Can anyone with experience with PADLICIOUS help me enable swiping the s left and right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:02:42+00:00Added an answer on June 2, 2026 at 9:02 am
    1. Save this script: http://padilicious.com/code/touchevents/swipesensejs.html. You’ll have to save the text and rename it something like “swipesense.js”.

    2. Include the script on your page. Something like this:

      <script src="/path/to/swipesense.js" type="text/javascript"></script>
      
    3. Include four event handlers in the tag in the DOM element you want to handle the touch events. I have a div called “wrapper” directly inside my body tag. Here’s what that tag looks like:

      <div id="wrapper"
          ontouchstart="touchStart(event,'wrapper');"
          ontouchend="touchEnd(event);"
          ontouchmove="touchMove(event);"
          ontouchcancel="touchCancel(event);>
      
      .... wrapper contents here ....
      
      </div>
      
    4. There’s a function called “processingRoutine()” within swipesense.js. Inside that function it’s pretty clearly laid out where you should insert code for each type of touch event.

    I moved processingRoutine() out of swipesense.js because it seemed more natural to me to have it integrated into the other JS that I would make more frequent edits to. I also renamed it “processSwipe()” – but anything less generic than “processingRoutine()” will work. Of course I had to change the one reference to it in swipesense.js as well.

    I hope that covers it for you. It works like a charm for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing web page which has main file index.php as follows: include('UserClass.php'); include('html/top.php'); $user
I am developing contactus webpage which have a input field called Email. It is
I am developing an Android app which needs to poll a specific webpage in
I am developing a webpage where user is searching for files using tags. I
I am developing a project in which two portions of webpage frequently change and
I'm developing a web page in which I'm using Twitter's Bootstrap Framework and their
I am developing a webpage using jquery and I have a contact form in
I'm developing a website/database solution which gives the administrator the option to sign into
I am trying to write an MVC webpage that has two drop down lists.
I am developing a webpage which our customers want to insert on their websites

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.