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

FR: Scope the selection container to only allow drag select

Open tehkyle opened this issue 4 years ago • 3 comments

I would like to use this directive to add drag-selection features, but I have my own custom shortcut+click logic already in place. I'd like either a configuration to only allow drag selecting or an event output parameter that indicates which type of selection action is returning the array of items.

tehkyle avatar Feb 28 '20 23:02 tehkyle

Hey there! Thanks for reaching out. Have you looked at the selectWithShortcut option? Check this part of the readme. Essentially it will disable click selection and only allows to select items via shortcut. Is that what you need?

d3lm avatar Mar 01 '20 20:03 d3lm

Thank you for your response. Unfortunately that option also won't work for us as our custom click logic uses some of the same shortcut keys in different ways.

tehkyle avatar Mar 02 '20 16:03 tehkyle

Can you post a StackBlitz that reproduces the shortcut situation?

d3lm avatar Mar 03 '20 14:03 d3lm