We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b63620b commit b5d3d5aCopy full SHA for b5d3d5a
1 file changed
v3/src/camera/Camera.js
@@ -235,18 +235,17 @@ Camera.prototype = {
235
{
236
this.scrollX = bounds.x;
237
}
238
- else if (this.scrollX > bounds.right)
+ else if (this.scrollX > bounds.right - width)
239
240
- this.scrollX = bounds.right;
+ this.scrollX = bounds.right - width;
241
242
-
243
if (this.scrollY < bounds.y)
244
245
this.scrollY = bounds.y;
246
247
- else if (this.scrollY > bounds.bottom)
+ else if (this.scrollY > bounds.bottom - height)
248
249
- this.scrollY = bounds.bottom;
+ this.scrollY = bounds.bottom - height;
250
251
252
0 commit comments