Skip to content

Commit

Permalink
Remove safari bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Nov 11, 2024
1 parent 3d45caf commit 2dfd362
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/dom/src/core/plugins/feedback/Feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ import {
Styles,
parseTranslate,
ProxiedElements,
isSafari,
getWindow,
generateUniqueId,
getDocument,
getFrameTransform,
type Transform,
DOMRectangle,
getFrameElement,
} from '@dnd-kit/dom/utilities';
Expand Down Expand Up @@ -176,11 +174,6 @@ export class Feedback extends Plugin<DragDropManager, FeedbackOptions> {

element.setAttribute(ATTRIBUTE, 'true');

if (isSafari()) {
// Fix a bug in Safari > 18.0 where changes to the `translate` css variable do not trigger a repaint
styles.set({translate: `var(${CSS_PREFIX}translate)`});
}

const transform = untracked(() => dragOperation.transform);
const translateString = `${transform.x * frameTransform.scaleX + initialTranslate.x}px ${transform.y * frameTransform.scaleY + initialTranslate.y}px 0`;

Expand Down

0 comments on commit 2dfd362

Please sign in to comment.