Skip to content

Commit

Permalink
Restore previous translate3d call
Browse files Browse the repository at this point in the history
After doing some reading, the original call is likely better for rendering performance and that's why it was used.
  • Loading branch information
DarkArc authored Aug 30, 2024
1 parent d026342 commit cf635b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const getStylesFromRect = (options: {
'--translate-x': `${xTranslation}px`,
'--translate-y': `${yTranslation}px`,
'--offset': `${options.offset}px`,
transform: 'translate(var(--translate-x), var(--translate-y))',
transform: 'translate3d(var(--translate-x), var(--translate-y), 0)',
'--transform-origin': getTransformOrigin(options.side, options.align),
visibility: 'visible',
...(canApplyMaxHeight && {
Expand Down

0 comments on commit cf635b6

Please sign in to comment.