Cormac Relf
Cormac Relf
This library does not implement any scrolling behaviour at all. `Dragula` does not either. There are other ways to do scrolling, such as dom-autoscroller. There is also the Angular CDK...
You don’t have `@types/dragula’`. Get the latest version of Ng2-Dragula, and it will be installed. If that’s not it, I can’t help you.
https://github.com/valor-software/ng2-dragula/blob/master/modules/ng2-dragula/src/DragulaOptions.ts
Maybe a typescript upgrade is in order
Also probably some typeRoots settings in your tsconfig Basically, this stuff works in new Angular apps, so there’s something wrong with the way your types/dragula is being resolved or installed.
Can you import directly from `@types/dragula`? i.e. ```ts import { DragulaOptions } from 'dragula'; const x: DragulaOptions = { moves: () => true, }; ``` As I posted above, `ng2-dragula`...
I built a demo that does this, among other things: https://github.com/cormacrelf/dragula-touch-demo
You could try using Angular Cdk’s drag and drop solution!
Put the toolbar in the draggable div. It just has to be a child node for events to bubble up and then use the drag handle pattern (see demo), but...
In the original Dragula demo, you get click events on anything inside a drag container. What's different about your situation? Can you provide a simple repro?