mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Use canvas instead of sketchCanvas
This commit is contained in:
parent
c24e8ceedf
commit
e38c53ff31
@ -430,15 +430,15 @@ $.Drawer.prototype = {
|
||||
bounds.width += bounds.x;
|
||||
bounds.x = 0;
|
||||
}
|
||||
if (bounds.width > this.sketchCanvas.width) {
|
||||
bounds.width = this.sketchCanvas.width;
|
||||
if (bounds.width > this.canvas.width) {
|
||||
bounds.width = this.canvas.width;
|
||||
}
|
||||
if (bounds.y < 0) {
|
||||
bounds.height += bounds.y;
|
||||
bounds.y = 0;
|
||||
}
|
||||
if (bounds.height > this.sketchCanvas.height) {
|
||||
bounds.height = this.sketchCanvas.height;
|
||||
if (bounds.height > this.canvas.height) {
|
||||
bounds.height = this.canvas.height;
|
||||
}
|
||||
|
||||
this.context.drawImage(
|
||||
|
Loading…
Reference in New Issue
Block a user