Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocastro committed Jun 30, 2024
1 parent e265266 commit 88a705e
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions packages/ember-draggable-modifiers/src/modifiers/draggable-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,6 @@ import { modifier } from 'ember-modifier';
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
import { CLASS, prepareDataForCallback } from './drop-target.js';



import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';

// onGenerateDragPreview: ({ nativeSetDragImage }) => {
// setCustomNativeDragPreview({
// render({ container }) {
// // Create our preview element
// const preview = document.createElement('div');

// // Populate and style the preview element however you like
// preview.textContent = 'My Preview';
// Object.assign(preview.style, {
// padding: '20px',
// backgroundColor: 'lightpink',
// });

// // put the "preview" element into the container element
// container.appendChild(preview);
// },
// nativeSetDragImage,
// });
// },

/**
* Modifier to make a DOM element draggable.
*
Expand All @@ -50,7 +26,6 @@ export default modifier(
isDraggingClass = CLASS.DRAGGING,
onDragStart = () => {},
onDragEnd = () => {},
onGenerateDragPreview = () => {},
} = {},
) {
return draggable({
Expand Down

0 comments on commit 88a705e

Please sign in to comment.