fix: imagScrollbar should not stop cine if not playing (#2920)
This commit is contained in:
parent
a16d7e1402
commit
83264bb5a5
@ -25,9 +25,13 @@ function CornerstoneImageScrollbar({
|
||||
viewportId
|
||||
);
|
||||
|
||||
// on image scrollbar change, stop the CINE if it is playing
|
||||
CineService.stopClip(element);
|
||||
CineService.setCine({ id: viewportIndex, isPlaying: false });
|
||||
const { isCineEnabled } = CineService.getState();
|
||||
|
||||
if (isCineEnabled) {
|
||||
// on image scrollbar change, stop the CINE if it is playing
|
||||
CineService.stopClip(element);
|
||||
CineService.setCine({ id: viewportIndex, isPlaying: false });
|
||||
}
|
||||
|
||||
csToolsUtils.jumpToSlice(viewport.element, {
|
||||
imageIndex,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user