Bug: Multiple image select with boxZoom
See original GitHub issueCurrently 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
- 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):
Relevant lines of code
- the
BoxSelectHandle.js
file linked above overrides the default boxZoom handler - in the Leaflet.DisortableCollection.js, the event listener runs the code in https://github.com/publiclab/Leaflet.DistortableImage/blob/88fe9281cb7c00cc90c4a52029bf2ca7763553de/src/DistortableCollection.js#L64-L78 to decide which images to select.
- have to figure out what is causing the reselection (event propagation, event execution deferral, etc.?) and stop it
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (17 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To further clarify on this, notice two different subroutines that occur.
_addSelection
gets executed on every single “mouseup” event@rexagod I fixed this in my pending PR #229 ! I noticed that too