selecto icon indicating copy to clipboard operation
selecto copied to clipboard

Compatibility about windowing technique

Open ozsirma opened this issue 3 years ago • 10 comments

Environments

  • Framework name: React
  • Framework version: v16
  • Component name: Selecto
  • Component version: Latest
  • Testable Address(optional):

Description

Firstly, thank you for this library. I am using react-window. Selecto runs querySelectorAll method for selectableTargets only during onDragStart. For windowing, is it possible re-find selectableTargets during onDrag ? Could a more logical piece of code be written for this use ?

ozsirma avatar Sep 23 '20 11:09 ozsirma

@ozsirma

Let me investigate. I'll probably make it possible through a method.

daybrush avatar Sep 24 '20 13:09 daybrush

Is there any progress on the feature ?

ozsirma avatar Oct 01 '20 12:10 ozsirma

@ozsirma

I couldn't manage because I was driven by a schedule. Now start working.

daybrush avatar Oct 17 '20 06:10 daybrush

@ozsirma

  • selecto 1.7.2
  • react-selecto 1.7.2
  • preact-selecto 1.6.2
  • ngx-selecto 1.7.2
  • lit-selecto 1.7.2
  • vue-selecto 1.7.2
  • svelte-selecto 1.7.2

selecto new version is released. Check it again. Use findSelectableTargets method

daybrush avatar Oct 20 '20 19:10 daybrush

Hi @daybrush findSelectableTargets is called in onDragStart. Could there be a mistake here ?

ozsirma avatar Oct 21 '20 12:10 ozsirma

@ozsirma

you can use findSelectableTargets in onDrag

daybrush avatar Oct 28 '20 17:10 daybrush

@ozsirma

you can use findSelectableTargets in onDrag

How I can use findSelectableTargets during in onDrag for react-selecto ? Can you give me an example ?

ozsirma avatar Nov 03 '20 14:11 ozsirma

@ozsirma I am also interested in using react-selecto with react window or another windowing technique. Did you find a solution for this?

mcunningham avatar Apr 03 '21 12:04 mcunningham

@mcunningham I could not find any technique. As a workaround, after onDragEnd I calculate the unselected fields and mark them as selected.

ozsirma avatar Apr 05 '21 06:04 ozsirma

@ozsirma @mcunningham

onDrag={(e) => {
    // re find selectable targets during dragging.
    selecto.findSelectableTargets();
}}

daybrush avatar Apr 05 '21 12:04 daybrush