Skip to content

Dragging multiple selected elements #1669

Answered by kumilingus
Ndmanh123 asked this question in Q&A
Discussion options

You must be logged in to vote

Here's an answer from Google Groups.

I just fix the problem by delete 1 css in css file i get from the source code demo dynamic-stencil

 .selection-box {
   opacity: 0.3;
   /* pointer-events: none; */ is was this line 
}

and set allowTranslate to true, I hope that could help you

By default, we capture the pointer event on the selection box element and translate all selected elements while the user is dragging. That's why the pointer-events: auto on .selection-box is important (without this property the target of the pointer event would be the element view itself and the default drag and drop mechanism would be triggered). Please make sure that is not overridden in your application.

The

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Ndmanh123
Comment options

Answer selected by kumilingus
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mwanagosos
Comment options

Comment options

You must be logged in to vote
3 replies
@kumilingus
Comment options

@mwanagosos
Comment options

@kumilingus
Comment options

Comment options

You must be logged in to vote
1 reply
@kumilingus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
jointjs+ The paid commercial extension to the JointJS
3 participants