jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable Disable scrolling page When drag&Drop

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Disable scrolling page When drag&Drop #103402

    mathod
    Participant

    Hello!
    Is it possible to disable drag and drop on the page when i drag and drop an item.
    Because, when i’m on mobile device, and drag an object, the page is moving in same time my object… I want to disable the scrolling’s page when my dragBegin, and enable my scrolling’s page when dragEnd..
    Is it possible to make something like this ?
    I have already seen this demo :
    demo
    but i don’t know that it resolve my problem…
    Thanks a lot for your help

    Disable scrolling page When drag&Drop #103433

    Martin
    Participant

    Hello mathod,

    jqxDragDrop has a restricter property which is used for setting an area within which you can drag an item.
    Possible Values:
    ‘body’
    ‘document’
    ‘parent’
    {left,top,width,height}

    You can try implementing a logic for keeping the dragged items inside the viewport so the page doesn’t scroll.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.