fix: Delete study measurements instead of all measurements (#4882)

This commit is contained in:
Bill Wallace authored and GitHub committed 2025-03-25 09:32:29 -04:00
1 parent 165c9dc710
commit 8e47112d8e
16 files changed
+237 -232

No files matched your search

@@ -888,6 +888,9 @@ function commandsModule({
},
scroll: (options: ToolTypes.ScrollOptions) => {
const enabledElement = _getActiveViewportEnabledElement();
// Allow either or direction for consistency in scroll implementation
options.delta ??= options.direction || 1;
options.direction ??= options.delta;
if (!enabledElement) {
return;