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

DragOvering the DraggableObject from one SortableObjects to another not working properly #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Zordaxy
Copy link

@Zordaxy Zordaxy commented Aug 19, 2024

Fix for draggable objects between multiple sortable object lists.

Fixes: #5
Similar fix we had in old repository: mharris717/ember-drag-drop#213

Copy link

netlify bot commented Aug 19, 2024

Deploy Preview for ember-drag-drop ready!

Name Link
🔨 Latest commit 844c845
🔍 Latest deploy log https://app.netlify.com/sites/ember-drag-drop/deploys/66c3ad2b8f89230008f04975
😎 Deploy Preview https://deploy-preview-6--ember-drag-drop.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -77,7 +77,7 @@ export default Service.extend({
draggingOver(event, emberObject) {
const currentOffsetItem = this.get('currentOffsetItem');
const pos = this.relativeClientPosition(emberObject.element, event);
const hasSameSortingScope = this.get('currentDragItem.sortingScope') === emberObject.get('sortingScope');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why separate these? In the new version you'd get an error if the first object is undefined.

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

Successfully merging this pull request may close these issues.

DragOvering the DraggableObject from one SortableObjects to another not working properly
2 participants