Skip to content

Commit

Permalink
refactor: remove DOM.setTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
malekeym committed Dec 14, 2021
1 parent 16fa227 commit dc792c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export default class Marker extends Evented {
this._updateFrameId = window.requestAnimationFrame(() => {
if (this._element && this._pos && this._anchor) {
this._pos = this._pos.round();
DOM.setTransform(this._element, `${anchorTranslate[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${pitch} ${rotation}`);
this._element.style.transform = `${anchorTranslate[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${pitch} ${rotation}`;
}
});
} else {
Expand Down

0 comments on commit dc792c3

Please sign in to comment.