MicroPad / MicroPad-Core

µPad (MicroPad) is an open digital note taking app
https://getmicropad.com
Mozilla Public License 2.0
234 stars 22 forks source link

Select multiple elements and move them? #436

Open NickGeek opened 1 year ago

NickGeek commented 1 year ago

Discussed in https://github.com/MicroPad/MicroPad-Core/discussions/435

Originally posted by **SelimOzel** April 10, 2023 Thanks for creating this. I use it track a few tasks and I love it. The question's is in the title. Best, S
SelimOzel commented 1 year ago

I'm happy to help out with this one. Can you point me out to the scripts that you'd work on if it was you who'd be working on it?

Thanks, Selim

NickGeek commented 1 year ago

@SelimOzel Awesome thanks. The code for the drag handlers lives in https://github.com/MicroPad/MicroPad-Core/blob/next-dev/app/src/app/components/note-viewer/elements/NoteElementComponent.tsx. The react-draggable library is used for it. You may be able to get it working nicely with that library or prefer to build a custom replacement.