Commit 0fc251c7 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил перерисовку canvas при scroll-е

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57289 954022d7-b5bf-4e40-9824-e11837661b57
parent fe93796a
......@@ -511,10 +511,16 @@
var sr = this._calcRect(sx, sy, w, h);
var r = this._calcRect(x, y);
var tmpOperation = this.ctx.globalCompositeOperation;
this.ctx.save();
this.ctx.globalCompositeOperation = 'copy';
this.ctx.beginPath();
this.ctx.rect(r.x, r.y, sr.w, sr.h);
this.ctx.clip();
this.ctx.drawImage(this.getCanvas(), sr.x, sr.y, sr.w, sr.h, r.x, r.y, sr.w, sr.h);
this.ctx.globalCompositeOperation = tmpOperation;
this.ctx.restore();
this.ctx.beginPath();
return this;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment