facebook

Drag and drop function

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #333432 Reply

    ycj
    Member

    How can I configure an object (e.g. a image button) to be able to be dragged and dropped. Do I have to write a JavaScript for it? If I do, how do I access the current mouse location? It does not appear that window.event.clientX and Y give me the coordinate.
    Thanks.

    YCJ

    #333461

    paulD
    Member

    Hi There

    There are a couple of ways you can make elements drag and drop. You can use the Jquery UI library http://jqueryui.com/draggable/ this allows you to drag and drop dom elements. Or you can create a HTML 5 canvas and create drag and drop using the canvas.

    It will have to be coded as currently there are no drag and drop widgets within Mobione.

    there is an example of canvas drag and drop here. http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=4496&hilit=canvas

    Hope that helps

    Paul

    #333465

    support-michael
    Keymaster

    @ycj

    One thing to account for is that a panel with the vertical scroller enabled overrides all touch/drag events.

    #333469

    paulD
    Member

    Having done a little digging around I’ve found out that Jquery UI drag doesn’t work with IPAD and IPHONE touchscreens. You need to use this as well

    https://github.com/manifestinteractive/touch

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Drag and drop function

You must be logged in to post in the forum log in