Skip to content

Commit

Permalink
fix(positioning): round translated positions (#3074)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso authored and maxokorokov committed Mar 28, 2019
1 parent bc7e9fc commit 5444d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/positioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class Positioning {

/// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix
// targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`;
targetElement.style.transform = `translate(${leftPosition}px, ${topPosition}px)`;
targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`;

// Check if the targetElement is inside the viewport
const targetElBCR = targetElement.getBoundingClientRect();
Expand Down

0 comments on commit 5444d13

Please sign in to comment.