Skip to content

Commit

Permalink
6944 - update scroll transform calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mradosev committed Jun 17, 2024
1 parent 73b0c65 commit 724eeea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/swimlane/ngx-datatable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "at-ngx-datatable",
"version": "7.0.0",
"version": "7.0.1",
"description": "ngx-datatable is an Angular table grid component for presenting large and complex data.",
"peerDependencies": {
"@angular/common": ">=17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion projects/swimlane/ngx-datatable/src/lib/utils/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const isSafari = /Safari\//.test(ua) && !/Chrome\//.test(ua);
export function translateXY(styles: any, x: number, y: number) {
if (typeof transform !== 'undefined' && hasCSSTransforms) {
if (!isSafari && hasCSS3DTransforms) {
styles[transform] = `translate3d(${x}px, ${y}px, 0)`;
styles['transform'] = `translate3d(${x}px, ${y}px, 0)`;
styles[backfaceVisibility] = 'hidden';
} else {
styles[camelCase(transform)] = `translate(${x}px, ${y}px)`;
Expand Down

0 comments on commit 724eeea

Please sign in to comment.