Commit 3492ed7f authored by Alexander.Trofimov's avatar Alexander.Trofimov

Deleted commented initContextSmoothing

parent 7889c27b
......@@ -485,7 +485,6 @@
if (null == canvas) {return;}
this.canvas = canvas;
this.ctx = this.canvas.getContext("2d");
//this.initContextSmoothing();
};
/**
......@@ -629,25 +628,6 @@
return this;
};
/**
* Delete smoothing
*/
/*DrawingContext.prototype.initContextSmoothing = function () {
var ctx = this.ctx;
if (!AscBrowser.isMobileVersion || null === ctx)
return;
// Не убирать. Баг на android при scroll!!!
if (ctx.imageSmoothingEnabled)
ctx.imageSmoothingEnabled = false;
if (ctx.mozImageSmoothingEnabled)
ctx.mozImageSmoothingEnabled = false;
if (ctx.oImageSmoothingEnabled)
ctx.oImageSmoothingEnabled = false;
if (ctx.webkitImageSmoothingEnabled)
ctx.webkitImageSmoothingEnabled = false;
};*/
// Canvas methods
DrawingContext.prototype.clear = function () {
......
......@@ -481,7 +481,6 @@
if (null == canvas) {return;}
this.canvas = canvas;
this.ctx = this.canvas.getContext("2d");
//this.initContextSmoothing();
};
/**
......@@ -625,25 +624,6 @@
return this;
};
/**
* Delete smoothing
*/
/*DrawingContext.prototype.initContextSmoothing = function () {
var ctx = this.ctx;
if (!AscBrowser.isMobileVersion || null === ctx)
return;
// Не убирать. Баг на android при scroll!!!
if (ctx.imageSmoothingEnabled)
ctx.imageSmoothingEnabled = false;
if (ctx.mozImageSmoothingEnabled)
ctx.mozImageSmoothingEnabled = false;
if (ctx.oImageSmoothingEnabled)
ctx.oImageSmoothingEnabled = false;
if (ctx.webkitImageSmoothingEnabled)
ctx.webkitImageSmoothingEnabled = false;
};*/
// Canvas methods
DrawingContext.prototype.clear = function () {
......
......@@ -1813,10 +1813,6 @@
this.canvas.style.height = this.canvasOverlay.style.height = this.canvasGraphic.style.height = this.canvasGraphicOverlay.style.height = height + 'px';
}
// При смене ориентации у планшета, сбрасываются флаги у canvas!
// ToDo перепроверить на новых исходниках, должно поправиться, был баг в отрисовке!!!!!!!!!!!!!
//this.drawingCtx.initContextSmoothing();
//this.overlayCtx.initContextSmoothing();
return true;
};
......
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