Browse Source

Don't pass floating-point pixel values to translate to avoid blur

Relating to https://github.com/metafizzy/isotope/issues/157
pull/1127/head
bencergazda 9 years ago
parent
commit
80208f5b5d
  1. 2
      dist/isotope.pkgd.js
  2. 2
      dist/isotope.pkgd.min.js

2
dist/isotope.pkgd.js vendored

@ -1000,7 +1000,7 @@ proto.getTranslate = function( x, y ) {
var isOriginTop = this.layout._getOption('originTop');
x = isOriginLeft ? x : -x;
y = isOriginTop ? y : -y;
return 'translate3d(' + x + 'px, ' + y + 'px, 0)';
return 'translate3d(' + Math.round(x) + 'px, ' + Math.round(y) + 'px, 0)';
};
// non transition + transform support

2
dist/isotope.pkgd.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save