search

Home  >  Q&A  >  body text

javascript - Can drag-and-drop layout not be implemented on the mobile terminal?

If the first p and the second p are exchanged on the mobile terminal, the body will scroll down.

Currently I have no ideas and don’t want to reinvent the wheel.
Is there any effect like http://www.jq22.com/demo/drag...?


已解决
https://github.com/RubaXa/Sortable
曾经蜡笔没有小新曾经蜡笔没有小新2695 days ago945

reply all(4)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-06-28 09:31:02

    https://github.com/RubaXa/Sor...

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-28 09:31:02

    Naturally it is achievable.
    Replace the mousedown, mousemove, mouseup on the PC side with the touchstart, touchmove, touchend supported by the mobile side.

    reply
    0
  • 黄舟

    黄舟2017-06-28 09:31:02

    Documentation on MDN

    reply
    0
  • 習慣沉默

    習慣沉默2017-06-28 09:31:02

    Your online example jq has not been included. To achieve this effect, just use the jq sort plug-in

    reply
    0
  • Cancelreply