Skip to content

Commit

Permalink
fix viewport scroll position
Browse files Browse the repository at this point in the history
  • Loading branch information
asvd committed Nov 22, 2016
1 parent 1b8fc83 commit c001b12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@
var section = entry.s[i++];

var sRect = section.rect;
var sTop = sRect[top] - offset.top;
var sLeft = sRect[left] - offset.left;
var sBottom = sRect[bottom] - offset.top;
var sRight = sRect[right] - offset.left;
var sTop = sRect[top] + vRect[top] - offset.top;
var sLeft = sRect[left] + vRect[left] - offset.left;
var sBottom = sRect[bottom] + vRect[top] - offset.top;
var sRight = sRect[right] + vRect[left] - offset.left;
var sHeight = sBottom - sTop;
var sWidth = sRight - sLeft;

Expand Down

0 comments on commit c001b12

Please sign in to comment.