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.

feature request: add CSS class when dragging is in progress

See original GitHub issue

Currently, the CSS class ng-draggable is added to any draggable elements.

It would be great if the class ng-dragging could also be added during a drag operation. This would allow styling for the cursor during a drag operation:

.ng-draggable {
  cursor: grab;
}

.ng-dragging {
  cursor: grabbing;
}

Great lib thx 😃

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
xieziyucommented, May 15, 2019

@danday74 It’s already published in 2.3.0

0reactions
lucadlncommented, Dec 7, 2019

Hi @xieziyu ,

Any chance I can make this work for resizing as well?

Thank you, Lucian.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request - Add CSS classes for styling #189
Feature Request - Add CSS classes for styling #189 ... This project is in progress right now but we plan to release it...
Read more >
Add CSS class to an element while dragging over w/ jQuery
Is it possible to add a CSS class to an element while it is being dragged over a particular area and replace the...
Read more >
Drag'n'Drop with mouse events
So here we'll see how to implement Drag'n'Drop using mouse events. ... Later we'll see how to add other features, such as highlighting ......
Read more >
How To Create Drag and Drop Elements with Vanilla ...
In this tutorial, we will build a drag-and-drop example using the HTML Drag and Drop API with vanilla JavaScript to use the event...
Read more >
HTML Drag and Drop
Step 1: Make an object draggable. First set the draggable attribute to true for that element to be draggable <img draggable = “true”>;...
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