444683462
V2EX  ›  问与答

拖拽排序的逻辑是怎么样的

  •  
  •   444683462 · Jan 24, 2016 · 1731 views
    This topic created in 3793 days ago, the information mentioned may be changed or developed.

    1 replies    2016-01-24 00:59:56 +08:00
    chemzqm
        1
    chemzqm  
       Jan 24, 2016   ❤️ 1
    简单点的使用 D&D https://github.com/chemzqm/sortable 只需要判断拖动时位置
    复杂点的 https://github.com/chemzqm/sweet-sortable 监听 touchmove 或者 mousemove ,然后判定速度方向位置实现
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2873 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:01 · PVG 18:01 · LAX 03:01 · JFK 06:01
    ♥ Do have faith in what you're doing.