diff --git a/core/flyout.js b/core/flyout.js index 267a01efb..29453a5ef 100644 --- a/core/flyout.js +++ b/core/flyout.js @@ -468,7 +468,7 @@ Blockly.Flyout.prototype.setBackgroundPathHorizontal_ = * Scroll the flyout to the top. */ Blockly.Flyout.prototype.scrollToStart = function() { - this.scrollbar_.set((this.horizontalLayout_ && this.RTL) ? 100000 : 0); + this.scrollbar_.set((this.horizontalLayout_ && this.RTL) ? Infinity : 0); }; /**