You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Could you please add an option to the MultiDrag plugin that disables deselecting of objects (i.e. avoids calling _deselectMultiDrag). It would be nice to have buttons that interact with the selected objects.
@ikegami It does pertain to what you suggest because the deselectZone option would be the document by default, and then when it is changed to another element, the multi drag elements would only get deselected when that element is clicked (as opposed to clicking anywhere on the document).
Another possible solution would be to add a class such as multidrag-click-ignore (or a data- attribute) to elements within the document that ought to be ignored when a click even is registered coming from them.
But it seems it still cannot stop deselection while clicking on scrollBar
Is it possible to make the feature of deselecting option while clicking empty space as one of config options. If true, deselect the multi drag option, otherwise no reaction,
likely you are not catching the event on the right element. You'll need to inspect your scroll bar and check which element is firing the event. It is possible there are more than one. You could bind an event callback on the document itself to see where your event is coming from.
Activity
owen-m1 commentedon Aug 30, 2019
Perhaps there can be a
deselectZoneHTMLElement option that, if clicked, will deselect all elements in that sortable.ikegami commentedon Aug 30, 2019
I'm not sure how that pertains to what I suggested?
Note that what you suggest is already trivially easy to produce:
ikegami commentedon Aug 30, 2019
Right now, I'm using the following hack to achieve the requested enhancement:
owen-m1 commentedon Aug 30, 2019
@ikegami It does pertain to what you suggest because the
deselectZoneoption would be thedocumentby default, and then when it is changed to another element, the multi drag elements would only get deselected when that element is clicked (as opposed to clicking anywhere on the document).ikegami commentedon Aug 30, 2019
ah, I see what you mean. That would indeed be a suitable interface.
aurovrata commentedon Sep 21, 2019
has this
deselectZonebeen implemented?Another possible solution would be to add a class such as
multidrag-click-ignore(or adata-attribute) to elements within the document that ought to be ignored when a click even is registered coming from them.aurovrata commentedon Sep 21, 2019
my current solution to this issue is to stop the event propagation on the specific element I wish to interact with without deselecting the items,
BrianKan714 commentedon Sep 25, 2019
But it seems it still cannot stop deselection while clicking on scrollBar
Is it possible to make the feature of deselecting option while clicking empty space as one of config options. If true, deselect the multi drag option, otherwise no reaction,
aurovrata commentedon Sep 25, 2019
likely you are not catching the event on the right element. You'll need to inspect your scroll bar and check which element is firing the event. It is possible there are more than one. You could bind an event callback on the document itself to see where your event is coming from.