Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Items are not visible properly while dragging in certain resolutions #44

Open
iampratapak opened this issue Apr 20, 2017 · 3 comments
Open

Comments

@iampratapak
Copy link

Items which I'm dragging are not visible properly in big screens. Even I noticed the same problem in your plunker example.

In your plunker I did below steps

Step 1: Click launch the preview in a separate window
--> full screen window will open

Step2: Now drag an item from the list and notice dragged item is not visible properly.

Even I'm facing the same issue in my current project also where I implemented ng2-drag-drop.

Thanks
Pratap A.K

@ObaidUrRehman
Copy link
Owner

This component uses HTML5 drag drop feature to accomplish what it does and the default drag behaviour is to show a semi-transparent ghost clone of the element being dragged. It's something that is not customizable. On top of that, the behaviour is browser dependent. On Microsoft Edge, it'll shows a clone of the element without opacity.

There is a dragImage property on the draggable directive that lets you set an image to be shown when dragging an image but even that has opacity applied to it. I am not sure if that serves your purpose.

The way other libraries do it, most notably JQuery draggable is that they drag a clone of the element along with the mouse, this way they have more control over it. Implementing something similar for this component is planned for later.

@InYourHead
Copy link

@ObaidUrRehman Does this problem will be resolved soon? It's 2019 year already

@ObaidUrRehman
Copy link
Owner

@InYourHead I have stopped active development on this project.
https://github.com/ObaidUrRehman/ng-drag-drop#warning-discontinuation-notice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants