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

  • SEARCH
  • Home
  • 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 7934999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:47:20+00:00 2026-06-03T21:47:20+00:00

I’m using jsTree to drag and drop items between several treeviews. This works fine

  • 0

I’m using jsTree to drag and drop items between several treeviews. This works fine on PCs, but not on tablets (both Apple and Android). I know JQueryUI does not have built-in DnD support for tablets and I’ve tried several of the tweaks available, but none of them worked.

Is it possible to use drag ‘n drop in jsTree on tablets?

Thanks!

  • 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-03T21:47:21+00:00Added an answer on June 3, 2026 at 9:47 pm

    I’ve been exploring this very issue for several days now, focusing on getting an existing web application that uses jsTree to work on an iPad. Using jquery.ui.touch.js I can get most of the way there. The touch events can be mapped to the mouse events that jstree is expecting, and the tree will allow me to drag, but the drop target is never recognized, and in fact the drop_check function is never called. So it’s not quite there.

    I think this may be because only some of the touch events can be mapped to mouse events like jquery.ui.touch.js does: touchstart=mousedown, touchmove=mousemove, touchend=mouseup. However, jstree also depends on mouseenter and mouseleave for drop target checking, and I don’t have an event for those. touchenter and touchleave have been discussed, but I don’t think the Safari browser on the iPad fires those at this point. I’ve been thinking about trying to generate the mouseenter and mouseleave events from the touchmove event by looking at the coordinates and checking for overlap, but I haven’t tried that yet.


    UPDATE: 18 May 2012. I think it’s working now. A couple of things are different than I thought. The big breakthrough was when I realized that the touch event target element never changes from touchstart, through all the touchmoves, to touchend. The mousemove event, however, was expecting that the element that gets the event is the element you’re moving over. So I changed the plugin to dispatch the mousemove event to the element at the coordinates in the touchmove event, and it worked like a champ. It also turned out that once I did that I didn’t need to manually trigger the mouseenter and mouseleave events any more because jQuery took care of those.

    The right click context menu (on touch-hold) worked in my simple tester app but not in our web application until I added in a simulated mouseup event on the right button after the context menu event.

    My modified version of jquery.ui.touch.js has been uploaded here:
    http://code.google.com/p/jquery-ui-for-ipad-and-iphone/issues/detail?id=18

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.