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

This topic contains 2 replies, has 3 voices, and was last updated by  wfhfurniture 3 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 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/


    wfhfurniture
    Blocked

    great

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

You must be logged in to reply to this topic.