summaryrefslogtreecommitdiff
path: root/morphic.js
diff options
context:
space:
mode:
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);