Integrate Cornerstone Tools v3 (#235) - WIP
- fix(stack-scroll): Activate mouse wheel and scrollbar stack scroll - fix(touch): Activate pinch zoom, two-finger pan and three (or more) finger stack scroll
This commit is contained in:
1 parent
3f2968b05f
commit
0a5feb9a0d
4 files changed
+41
-23
No files matched your search
@@ -1,4 +1,7 @@
|
||||
import { viewportUtils } from './viewportUtils';
|
||||
import { cornerstoneTools } from 'meteor/ohif:cornerstone';
|
||||
|
||||
const scrollToIndex = cornerstoneTools.import('util/scrollToIndex');
|
||||
|
||||
/**
|
||||
* This function switches to an image given an element and the index of the image in the current stack
|
||||
@@ -11,5 +14,5 @@ import { viewportUtils } from './viewportUtils';
|
||||
*/
|
||||
export function switchToImageByIndex(newImageIdIndex) {
|
||||
var element = viewportUtils.getActiveViewportElement();
|
||||
cornerstoneTools.scrollToIndex(element, newImageIdIndex);
|
||||
scrollToIndex(element, newImageIdIndex);
|
||||
}
|
||||
Reference in new issue
Block a user