d3lm / ngx-drag-to-select

A lightweight, fast, configurable and reactive drag-to-select component for Angular 10 and beyond
https://www.npmjs.com/package/ngx-drag-to-select
MIT License
293 stars 65 forks source link

No dragging #86

Closed Gluups closed 5 years ago

Gluups commented 5 years ago

Hello everybody,

I installed ng-drag-to-select in my project, in app.module.ts I have this : `import { DragToSelectModule } from 'ngx-drag-to-select';

@NgModule({ declarations: [ AppComponent, FellowsComponent ], imports: [ BrowserModule, AppRoutingModule, DragToSelectModule.forRoot({ selectedClass: 'my-selected-item', shortcuts: { disableSelection: 'alt+meta' } }) ], `

and on the web page I have this : `<dts-select-container #container="dts-select-container" (select)="someMethod($event)" [(selectedItems)]="selectedFellows" [selectOnDrag]="true" [disabled]="false" [disableDrag]="true" [selectMode]="true" [custom]="true" [selectWithShortcut]="false"> <div [dtsSelectItem]="fellow" *ngFor="let fellow of fellows">{{ fellow.name }}

` it realizes the selection of an element by clicking on it, but nothing happens when I try to drag with the mouse. Any idea what I forgot ?

By the way is the download zip supposed to be up-to-date ?

d3lm commented 5 years ago

Heya! Can you please provide a reproducable StackBlitz? This helps me to find out what the issue is and I have something to double check or debug in case it's an issue with the library. I would also appreciate if you could properly format your issue and put code inside markdown code blocks, so it's easier to read and parse.

The zip should be up-to-date, yes. It's version 3.1.1 and that is the same that is published to npm. The zip you download is basically the master branch. So it should always be up-to-date. But be aware that downloading master might not always be a good idea. Sometimes master can contain code that is not yet published and might break your app. But for this library that's not the case. The current master is published to npm.

Gluups commented 5 years ago

Hello, OK if I do not forget I shall try and do that at a calmer moment. For the moment being, my chief of project insisted on my using cdk.

d3lm commented 5 years ago

Closing because of inactivity. If this is still an issue, we can reopen it. In that case, please make sure to provide a clear reproducable.