Comments (11)
I'm not sure why it would be doing this either. We don't apply any styling to the cursor in the code currently. I'll have to look into further soon,
from ember-drag-drop.
Ok, great. Thanks for making this addon—it's really helpful.
from ember-drag-drop.
Hi,
I'm running into the same issue with cursor style not being applied when start moving the object - it shows the default pointer. Any update on whether you got a chance to look into this?
from ember-drag-drop.
I still have not figured this out.
On Aug 1, 2016, at 2:46 PM, Priyam Chawla [email protected] wrote:
Hi,
I'm running into the same issue with cursor style not being applied when start moving the object - it shows the default pointer. Any update on whether you got a chance to look into this?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #24 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ABCWvSQAaA0sRj9xsEFw8Vcgh6X48bCmks5qbj8hgaJpZM4HCtd_.
Dustin Farris
from ember-drag-drop.
I think this may be a limitation with browsers rather than this plugin.
Possibly setting a .dragging
class on the body when dragging starts, and removing when finished + body.dragging { cursor: -webkit-grabbing; }
may work.
from ember-drag-drop.
I'm facing the same issue with webkit based browsers. On Firefox, the first time I drag, the cursor return to default type. But from the second time onwards it works fine on Firefox.
I'm simply overriding the draggable-object class as described in the documentation.
This is my CSS:
.draggable-node {
cursor: move;
/* fallback if grab cursor is unsupported */
cursor: -webkit-grab;
cursor: grab;
}
.draggable-node:active {
border-left: 5px solid $pond;
cursor: move;
cursor: grabbing;
cursor: -webkit-grabbing;
}
The border-left property stays attached throughout the drag-drop event though.
from ember-drag-drop.
Running into this issue also. @batraman's work around isn't working for us. Looks like we may need to use another drag & drop library until this is fixed.
from ember-drag-drop.
@bendycode have you tried my suggestion? (above)
from ember-drag-drop.
@sandstrom: Tried it just now, without success.
from ember-drag-drop.
I think I figured out what the problem is here. effectAllowed gets set as part of dragStart in the drag coordinator, which seems to only allow the cursor to look normal unless overridden. I wonder if there's actually a good reason to set it like that. Seems like it should be a configurable parameter for the component.
https://github.com/mharris717/ember-drag-drop/blob/master/addon/services/drag-coordinator.js#L33
from ember-drag-drop.
I think this may be a limitation with browsers rather than this plugin.
Possibly setting a
.dragging
class on the body when dragging starts, and removing when finished +body.dragging { cursor: -webkit-grabbing; }
may work.
Run in to the same problem. Tried adding a dragging class as suggested but has 2 issues:
- There is always a moment of glitch of move cursor when the drag starts
- The cursor sometimes (around 50% of time) reset to normal cursor while dragging
from ember-drag-drop.
Related Issues (20)
- Component#sendAction is deprecated HOT 16
- only allow specific object to be dropped HOT 2
- dragging "through" a draggable-object HOT 2
- drag-handle is not reconnected when component nested under draggable-object re-renders HOT 6
- fix the draggable-object-target lose the class accepts-drag HOT 2
- Multi list sorting - add draggable-object on drop
- 0.7.0 changelog and breaking changes ? HOT 1
- In Acceptance tests, drag-drop helper fails to trigger the dragend event
- Passing hasMany relationship into {{#sortable-objects}} HOT 1
- Possible to style sortable options like Spotify? HOT 2
- Cannot create 2 test using drap HOT 1
- Can not move DraggableObject into SortableObjects if SortableObjects is empty
- Example of sorting in README.md has errors
- Embroider compatibility problems HOT 1
- Trigger `dragenter` and `dragleave` as part of `dragOverMoves` option
- Full Ember Octane Compatibility? HOT 1
- Forward `dragleave` event to `@handleDragOut`
- DragOvering the DraggableObject from one SortableObjects to another not working properly. HOT 2
- "no obj for key" error
- Incompatible with `ember-cli-mirage` v3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-drag-drop.