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 7430461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:08:39+00:00 2026-05-29T09:08:39+00:00

I was testing out an interface I built using jQuery UI draggable, droppable and

  • 0

I was testing out an interface I built using jQuery UI draggable, droppable and sortable and noticed that the drag and drop doesn’t work in the mobile browser. I suppose there is a different way in which events are fired in the mobile browser.

Are there any JavaScript frameworks yet, that support drag and drop in the mobile browser?

If not, any ideas on how one could go about putting together some basic drag/drop functionality?

  • 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-05-29T09:08:40+00:00Added an answer on May 29, 2026 at 9:08 am

    A tricky one…I think you’ve pretty much highlighted the problem: the touch events aren’t integrated with the jQuery drag/drop functionality yet, and I’m not sure if there are drag/drop libraries out there targeting the mobile device range.

    What I can say is that you can start tapping into those events yourself, but I’m not sure if you’re willing to write all that yourself. In simple terms, checking for a mobile device and then attaching the events could be achieved like this:

    if (navigator.userAgent.match(/iphone/i) ||
        navigator.userAgent.match(/ipad/i) ||
        navigator.userAgent.match(/ipod/i) ||
        navigator.userAgent.match(/android/i))
    {
        var element = $('#your_draggable_element_id');
        element.bind('touchstart', touchStartFunctionHere);
        element.bind('touchmove', touchMoveFunctionHere);
        element.bind('touchend', touchEndFunctionHere);
    }
    

    That would patch you into the events, which would give you control over what you did next. You’d obviously want the locations of drag moves, touches, etc., and you can get those from the event itself. For example, based on the above code:

    function touchMoveFunctionHere(event)
    {
        event.preventDefault();
        var x = event.originalEvent.touches[0].pageX;
        var y = event.originalEvent.touches[0].pageY;
    
        ...
    
    }
    

    Not the complete solution you were looking for, and I hope someone else can shed some light on drag/drop frameworks for mobile devices, but it’s a start! Hope this helps!

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

Sidebar

Related Questions

Testing out someone elses code, I noticed a few JSP pages printing funky non-ASCII
I'm finally starting out with unit testing, having known that I should be doing
I am starting out with unit testing, I have a method that uses the
While testing out a UDP multicast server that I've written on Windows 7 Ultimate
New to unit testing and have an app that is spread out over several
Using C#/.NET 4.0 I was hoping the following scenario would be possible: interface IA<out
I wonder is anyone have tryed using Grensesnitt for unit-testing of classes that all
I have an app that's built for Android 2.2, so I'm not using the
I've been testing out the performance and memory profiler AQTime to see if it's
I'm testing out my application with the hopes of migrating to SQL Server 2008

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.