summaryrefslogtreecommitdiff
path: root/morphic.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-04-30 15:57:41 +0200
committerjmoenig <jens@moenig.org>2013-04-30 15:57:41 +0200
commite51a0ed7188b8361234a99781cb1d3c8ef7de62c (patch)
treed05dd792b41e8acf5526b753b0248c9466cac8ab /morphic.js
parent1505796e19fa90ea858fc348aa2cd79817f0aab6 (diff)
downloadsnap-yow-e51a0ed7188b8361234a99781cb1d3c8ef7de62c.tar.gz
snap-yow-e51a0ed7188b8361234a99781cb1d3c8ef7de62c.zip
Fixed #24
Diffstat (limited to 'morphic.js')
-rw-r--r--morphic.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphic.js b/morphic.js
index bd54d86..436edea 100644
--- a/morphic.js
+++ b/morphic.js
@@ -8705,6 +8705,9 @@ ScrollFrameMorph.prototype.scrollY = function (steps) {
}
if (newY + ch < b) {
newY = b - ch;
+ if (newY > t) {
+ newY = t;
+ }
}
if (newY !== ct) {
this.contents.setTop(newY);