mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
fix typo in scrollbar.js
This commit is contained in:
parent
0ccdf83e18
commit
136e24a132
1 changed files with 1 additions and 1 deletions
|
@ -497,7 +497,7 @@ Blockly.Scrollbar.prototype.onScroll_ = function() {
|
|||
* @param {number} value The distance from the top/left end of the bar.
|
||||
*/
|
||||
Blockly.Scrollbar.prototype.set = function(value) {
|
||||
var ratio = this.ratio_ == this.ratio_ || 0;
|
||||
var ratio = this.ratio_ || 0;
|
||||
// Move the scrollbar slider.
|
||||
this.svgKnob_.setAttribute(this.horizontal_ ? 'x' : 'y', value * ratio);
|
||||
this.onScroll_();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue