Skip to content

Commit 8ac521b

Browse files
committed
remove vecter bounds entirely
1 parent b67366b commit 8ac521b

2 files changed

Lines changed: 56 additions & 2 deletions

File tree

package-lock.json

Lines changed: 49 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/helper/view.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,13 @@ const getActionBounds = isBitmap => {
175175
if (isBitmap) {
176176
return ART_BOARD_BOUNDS;
177177
}
178-
return paper.view.bounds.unite(ART_BOARD_BOUNDS).intersect(MAX_WORKSPACE_BOUNDS);
178+
// i officially HATE the paper repo more than i hate the blockly repo now
179+
return {
180+
left: -Infinity,
181+
right: Infinity,
182+
top: -Infinity,
183+
bottom: Infinity
184+
};
179185
};
180186

181187
const zoomToFit = isBitmap => {

0 commit comments

Comments
 (0)