We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06b08c8 commit b885052Copy full SHA for b885052
packages/maptalks/src/ui/UIComponent.ts
@@ -942,9 +942,9 @@ class UIComponent extends Eventable(Class) {
942
if (this.options['rotateWithMap'] && bearing) {
943
r += ` rotateZ(${Math.round(-bearing)}deg)`;
944
}
945
- return 'translate3d(' + Math.fround(p.x) + 'px,' + Math.fround(p.y) + 'px, 0px)' + r;
+ return 'translate3d(' + Math.round(p.x) + 'px,' + Math.round(p.y) + 'px, 0px)' + r;
946
} else {
947
- return 'translate(' + Math.fround(p.x) + 'px,' + Math.fround(p.y) + 'px)';
+ return 'translate(' + Math.round(p.x) + 'px,' + Math.round(p.y) + 'px)';
948
949
950
0 commit comments