Skip to content

Commit

Permalink
Merge pull request #456 from entrylabs/issue/4325
Browse files Browse the repository at this point in the history
stage boundRect bug fix
  • Loading branch information
chanlee authored Aug 19, 2016
2 parents 24e8d2f + 8137225 commit 76c217c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -12946,6 +12946,9 @@ Entry.Stage.prototype.initStage = function(b) {
Entry.windowResized.attach(this, function() {
Entry.stage.updateBoundRect();
});
$(window).scroll(function() {
Entry.stage.updateBoundRect();
});
a = function(a) {
a.preventDefault();
var b = Entry.stage.getBoundRect(), e;
Expand Down
6 changes: 3 additions & 3 deletions dist/entry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ Entry.Stage.prototype.initStage = function(canvas) {
Entry.stage.updateBoundRect();
});

$(window).scroll(function() {
Entry.stage.updateBoundRect();
});

var moveFunc = function(e){
e.preventDefault();
var roundRect = Entry.stage.getBoundRect();
Expand Down

0 comments on commit 76c217c

Please sign in to comment.