riktar / jkanban

Vanilla Javascript plugin for manage kanban boards
https://www.riccardotartaglia.it/jkanban/
Apache License 2.0
1.08k stars 300 forks source link

Drag handler for items #70

Closed JacobBlana closed 4 years ago

JacobBlana commented 4 years ago

I was just curious about this. We tried using this library for our own task board with connection to company internal system. So far so good and we are pleased by the result. At the moment we are doing intense testing and actualy started thinking about handlers for moving items. Even dragula itself has some sort of this funcionality. Have you ever consider this feature to be a thing? Or perhaps do you know about a way how it could be implemented? We looked into this problem and so far didnt come up with an easy enough solutions.

marcosrocha85 commented 4 years ago

Hi @JacobBlana, I developed a board to a customer of mine and I hasn't bumped into that kind of needing. Trello has no drag handler at my knowledge, but in other hand, Vue-Draggable has. I guess this feature can be included into jkanban as well. What kind of goal are you achieving with drag handler?

JacobBlana commented 4 years ago

We are looking at this mainly because of few things. Mainly this is cause we are using it with a big touch enabled TV. That by it self would be a problem, but we have implemented many buttons and control elements on each items so any missmatched touch triggers drag. So we are kinda looking towards solutions that will allow us only drag the items when we really need to.

marcosrocha85 commented 4 years ago

I think I can take care of this.

riktar commented 4 years ago

thanks @marcosrocha85, I've fixed handlers, @JacobBlana you can find it in 27c288d1e17adb8669f0d9d03562e98f1210a17e

JacobBlana commented 4 years ago

Holy smoked bananas. Works amazing. Made it work for our board in a couple of minutes. Thanks a lot @riktar.