question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Multiple image select with boxZoom

See original GitHub issue

Currently to select multiple images, you can use cmd + click. There is another feature, found in the file BoxSelectHandle.js (https://github.com/publiclab/Leaflet.DistortableImage/blob/main/src/edit/BoxSelectHandle.js) that overrides Leaflet’s default boxZoom to allow for using shift + drag to select multiple images.

However, there is a bug with it so currently the event listener for this functionality is commented out. To test this bug uncomment this line. https://github.com/publiclab/Leaflet.DistortableImage/blob/88fe9281cb7c00cc90c4a52029bf2ca7763553de/src/DistortableCollection.js#L16

Actual behavior boxSelect

  • After click on the map to deselect, clicking an image in the same area as the previous boxSelect area reselects the images for multiple select (something that typically should only be triggered by cmd + click not regular click).

Expected behavior

  • By leaving an image out of the boxSelect area, I demonstrate the expected behavior (no reselections on regular click): boxSelect3

Relevant lines of code

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

3reactions
rexagodcommented, Apr 28, 2019

To further clarify on this, notice two different subroutines that occur.

  • _addSelection gets executed on every single “mouseup” event
  • Reselection takes place respective to the sequence in which the images were selected (was bottom-left to top-right below), thus explaining “Cannot explain exactly why this is but perhaps its been fixed when they updated the logic for flipping axis?”

Peek 2019-04-28 14-14

1reaction
sashadev-skycommented, Apr 26, 2019

@rexagod I fixed this in my pending PR #229 ! I noticed that too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django crispy-forms bug: Multiple Image input doesn't show ...
I have a crispy form with an image input field that accepts multiple images: images = forms.ImageField(widget=forms.
Read more >
zoom | CSS-Tricks
The zoom property in CSS allows you to scale your content. It is non-standard, and was originally implemented only in Internet Explorer.
Read more >
Multiple image upload breaks image dimensions - Drupal
Displaying images that were uploaded at the same time (selecting mulitple images) are broken. The height/width from the first image are applied ...
Read more >
CO1 v22 continuously opens folders with random multiple ...
I spend a lot of time deselecting the images and selecting one image, ... It's almost comical how I got no response to...
Read more >
Can blackboard tell if you screenshot
In this screenshot, you can see the default view in Collaborate: The large image is the Media Space (1). Next, choose Build Test....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found