Skip to content

Commit

Permalink
Something, somewhere, assumes this is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Feb 15, 2024
1 parent d85465b commit 82227e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ Blockly.Scrollbar.prototype.cleanUp_ = function() {
* @private
*/
Blockly.Scrollbar.prototype.constrainHandle_ = function(value) {
if (value <= 1 || isNaN(value) || this.scrollViewSize_ < this.handleLength_) {
value = 1;
if (value <= 0 || isNaN(value) || this.scrollViewSize_ < this.handleLength_) {
value = 0;
} else {
value = Math.min(value, this.scrollViewSize_ - this.handleLength_);
}
Expand Down

0 comments on commit 82227e3

Please sign in to comment.