Closed felixmariotto closed 3 years ago
The issue happens only when sationaryBase == true, because of these lines :
sationaryBase == true
if(this._stationaryBase === true){ this._baseEl.style.display = ""; this._baseEl.style.left = (this._baseX - this._baseEl.width /2)+"px"; this._baseEl.style.top = (this._baseY - this._baseEl.height/2)+"px"; }
it is fixed by replacing element.width and element.height by element.clientWidth and element.clientHeight
element.width
element.height
element.clientWidth
element.clientHeight
The issue happens only when
sationaryBase == true
, because of these lines :it is fixed by replacing
element.width
andelement.height
byelement.clientWidth
andelement.clientHeight