ecoacoustics / web-components

https://oe-web-components.netlify.app/
MIT License
1 stars 0 forks source link

Drag-selecting multiple spectrogram tiles is limited to the smallest grid size chosen in session #187

Open nellihol opened 19 hours ago

nellihol commented 19 hours ago

Describe the bug

If the user changes the grid size, a bug appears with the drag-select. It is only possible to multi-select using click-and-drag to the minimum number selected from the grid size button. For example, if the user changes the grid size to two and then to four, they can only select two using the drag tool.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '/examples/verification/single/'
  2. Click on 'Change Grid Size'
  3. Change the grid size to 1 and then back to 5
  4. Try to use click and drag to choose multiple items
  5. See error
  6. Sometimes, you have to change the grid setting twice to small and big again to see the error

Expected behavior

Changing the grid size should not affect how many tiles the user can select with click-and-drag.

Screenshots

image

Browser