EGN
EGN

Reputation: 2572

Disable Angular's Dragging Animation

I'm looking for away to disable Angular's animation when dragging elements. Currently Angular smoothly drag the element, if you move the mouse quickly the dragged element will follow the mouse smoothly not instantly. This isn't the behaviour I want. Is there a way to disable the animation or change it to instant move?

See below for a sample code

<div cdkDrag>Move Me</div>

Upvotes: 0

Views: 1178

Answers (1)

leonmain
leonmain

Reputation: 344

Can you try to add these css:

.cdk-drag {
  transition: none;
}

.cdk-drag-animating {
  transition: none;
}

Upvotes: 2

Related Questions