Skip to content

Commit f6d9c52

Browse files
committed
Fix detection of what gcode files are scrolled into view
1 parent ac23f37 commit f6d9c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

octoprint_gcodethumbs/static/js/gcode-preview-viewmodel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $(function() {
1616
To keep things in proportion we will cache the dom fragments in memory and we'll
1717
limit our updates to the currently visible area in the scrollable list.
1818
*/
19-
const scrollContainer = document.querySelector('.gcode_files');
19+
const scrollContainer = document.querySelector('.gcode_files .scroll-wrapper');
2020
var timer = null;
2121

2222
// TODO: reset timer onscroll

0 commit comments

Comments
 (0)