BlueGit

timfa frameworkv3

ups

timfa Tim · pushed by timfa

Authored 2022-10-20 · 4 years ago

Hash
210a25f55561ebc59cbdbe9fae7884310e054e33
Parent
20289d3f
1 file changed +4 −4
framework/engine/scene.js +4 −4
@@ -157,15 +157,15 @@ class Scene
157 157 if (this.canvas.height != this.real_size.y)
158 158 this.canvas.height = this.real_size.y;
159 159
160 if (px != this.real_position.x)
160 if (this.px != this.real_position.x)
161 161 {
162 px = this.real_position.x;
162 this.px = this.real_position.x;
163 163 this.canvas.style.left = this.real_position.x;
164 164 }
165 165
166 if (px != this.real_position.y)
166 if (this.py != this.real_position.y)
167 167 {
168 px = this.real_position.y;
168 this.py = this.real_position.y;
169 169 this.canvas.style.top = this.real_position.y;
170 170 }
171 171
@@ -157,15 +157,15 @@ class Scene
157 if (this.canvas.height != this.real_size.y)
157 if (this.canvas.height != this.real_size.y)
158 this.canvas.height = this.real_size.y;
158 this.canvas.height = this.real_size.y;
159
159
160 if (px != this.real_position.x)
160 if (this.px != this.real_position.x)
161 {
161 {
162 px = this.real_position.x;
162 this.px = this.real_position.x;
163 this.canvas.style.left = this.real_position.x;
163 this.canvas.style.left = this.real_position.x;
164 }
164 }
165
165
166 if (px != this.real_position.y)
166 if (this.py != this.real_position.y)
167 {
167 {
168 px = this.real_position.y;
168 this.py = this.real_position.y;
169 this.canvas.style.top = this.real_position.y;
169 this.canvas.style.top = this.real_position.y;
170 }
170 }
171
171