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:
Evren Ozkan committed 2018-10-29 10:58:53 -04:00
1 parent 3f2968b05f
commit 0a5feb9a0d
4 files changed
+41 -23

No files matched your search

@@ -2,6 +2,8 @@ import { $ } from 'meteor/jquery';
import { cornerstone, cornerstoneTools } from 'meteor/ohif:cornerstone';
import { OHIF } from 'meteor/ohif:core';
const scrollToIndex = cornerstoneTools.import('util/scrollToIndex');
/**
* Activates a specific tool data instance and deactivates all other
* target and non-target measurement data
@@ -76,7 +78,7 @@ OHIF.measurements.activateMeasurements = (element, measurementData) => {
// If we aren't currently displaying the image that this tool is on,
// scroll to it now.
if (currentImageId !== imageId) {
cornerstoneTools.scrollToIndex(element, imageIdIndex);
scrollToIndex(element, imageIdIndex);
}
const $element = $(element);