We can't cache the canvas's top/left as they will change depending on where you are on the page

This commit is contained in:
Stuart Parmenter 2008-12-11 16:16:26 -08:00
Родитель b6c88381dd
Коммит 6458fd420c
1 изменённых файлов: 1 добавлений и 10 удалений

Просмотреть файл

@ -58,16 +58,7 @@ CanvasBrowser.prototype = {
},
get canvasRect() {
if (!this._canvasRect) {
let canvasRect = this._canvas.getBoundingClientRect();
this._canvasRect = {
width: canvasRect.width,
height: canvasRect.height,
left: canvasRect.left,
top: canvasRect.top
}
}
return this._canvasRect;
return this._canvas.getBoundingClientRect();
},
get _effectiveCanvasDimensions() {