ngx-drag-to-select icon indicating copy to clipboard operation
ngx-drag-to-select copied to clipboard

[selectOnClick]="false" option prevents initiating a drag box between items

Open gavinharriss opened this issue 3 years ago • 5 comments

If you take the README.md https://stackblitz.com/edit/ngx-drag-to-select?file=app%2Fpages%2Fhome%2Fhome.component.html link and add the [selectOnClick]="false" you'll find that the drag box can no longer be initiated from between card items. It's only possible to initiate a selection from the dts-select-container borders.

gavinharriss avatar Nov 30 '21 03:11 gavinharriss

Hey there! Thanks for reporting this issue. Please provide a reproduction link using StackBlitz.

d3lm avatar Nov 30 '21 07:11 d3lm

No worries, here you go: https://stackblitz.com/edit/ngx-drag-to-select-5xjaaj?file=src%2Fapp%2Fapp.component.html

Just something I noticed while looking at the solution as a potential option to a problem I'm solving.

A screenshot from your live demo - https://d3lm.github.io/ngx-drag-to-select/ 2021-12-01 09_16_56-Angular Drag-to-Select_ v4 2 0_ v4 2 0

gavinharriss avatar Nov 30 '21 20:11 gavinharriss

Ah yes, I see. This seems to be a bug indeed.

d3lm avatar Dec 01 '21 08:12 d3lm

@gavinharriss did you happen to find a workaround for this?

In my specific case, when you select a group, you should be able to drag that selected group to a different position. Currently, after selecting multiple elements, trying to drag them updates the selection to the single entity you're trying to move.

When [selectOnClick]="false" is set, dragging to select is not working at all anymore :(

GRX avatar Aug 26 '22 23:08 GRX

@GRX sorry, I never found a fix for the issue.

gavinharriss avatar Aug 27 '22 01:08 gavinharriss