Code Monkey home page Code Monkey logo

Comments (4)

tsov avatar tsov commented on May 17, 2024

@madebyaaron thanks!

Interesting idea! How would you see this work?

I had a similar idea for multi-touch support, i.e. ability to pick up multiple draggables with multiple fingers. But this would be something to look at after releasing the first stable build.

from draggable.

madebyaaron avatar madebyaaron commented on May 17, 2024

I'd approach it in the following...

I currently have a delay on my sortable items to allow me to select them using "command/ctrl + click". This adds a reference of the selected item to a store to track the state (a glorified array).

When i drag one of my sortable items (with command/ctrl held down), a mirror would be created for each selected item (offset by one another). Giving the appearance that I'm moving all selected items. Then on release, all the items would be moved to the new position (respecting their original indexing)

That'd would be my approach in terms of functionality. Happy to provide how i'd approach it technically too if it helps.

from draggable.

Amfishers avatar Amfishers commented on May 17, 2024

@madebyaaron Hi guy, how do you use "command/ctrl + click" to select an item, In the onMouseDown event of MouseSensor. js , the ctrlKey event is returned. You can look at this Thx~

from draggable.

Irina-Intuiface avatar Irina-Intuiface commented on May 17, 2024

I had a similar idea for multi-touch support, i.e. ability to pick up multiple draggables with multiple fingers. But this would be something to look at after releasing the first stable build.

Has this ever been implemented? When I try to drag a second item, the first one isn't released and the mirror stays displayed indefinitely. I'd like to know if it's because of my implementation or simply not possible with v1.0.0-beta.12

from draggable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.