marcospont / agnostic-draggable

An agnostic set of libraries implementing draggable, droppable, sortable and resizable behaviors inspired by the jQuery UI implementation
MIT License
39 stars 7 forks source link

Solved right-click, droppable.accept only once called #17

Closed andreiciobanica closed 1 year ago

andreiciobanica commented 1 year ago

Solved right-click: #16 If you do removeEventListener, you need to pass same args as you do addEventListener.

Solved #15

marcospont commented 1 year ago

The accept method of a droppable instance needs to check the incoming draggable/sortable against the 'accept' option of that droppable that can be either a function or a CSS selector. The behavior cannot be removed since it breaks an existing functionality.

The fix on the removeEventListener call for the 'contextmenu' event will be incorporated.