Skip to content

Commit 70b7f15

Browse files
committed
fix: drop markers not getting cleared on auto scroll
1 parent 972e3f6 commit 70b7f15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,15 @@ function RemoteFunctions(config = {}) {
137137

138138
// Start scrolling if needed
139139
if (scrollDirection !== 0) {
140+
if (!_isAutoScrolling) {
141+
_clearDropMarkers();
142+
}
140143
_isAutoScrolling = true;
141144
_autoScrollTimer = setInterval(() => {
142145
window.scrollBy(0, scrollDirection);
143146
}, 16); // 16 is ~60fps
144147
} else {
145-
_isAutoScrolling = false;
148+
_stopAutoScroll();
146149
}
147150
}
148151

0 commit comments

Comments
 (0)