We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b78372f commit c651448Copy full SHA for c651448
iron-scroll-spy-behavior.html
@@ -78,7 +78,8 @@
78
},
79
_findSpiedIndex: function() {
80
var scrollTargetHalfHeight = this.scrollTarget.clientHeight/2;
81
- for (item of this.items) {
+ for (var i in this.items) {
82
+ var item = this.items[i];
83
var top = item.offsetTop;
84
var height = item.clientHeight;
85
if ( (this._scrollTop > top - scrollTargetHalfHeight)
0 commit comments