Fix keyscroll.
This commit is contained in:
parent
edfbad10af
commit
5019f539ee
@ -1,4 +1,7 @@
|
||||
import { viewportUtils } from './viewportUtils';
|
||||
import { cornerstoneTools } from 'meteor/ohif:cornerstone';
|
||||
|
||||
const scroll = cornerstoneTools.import('util/scroll');
|
||||
|
||||
/**
|
||||
* This function switches to an image given an element and
|
||||
@ -11,5 +14,5 @@ import { viewportUtils } from './viewportUtils';
|
||||
*/
|
||||
export function switchToImageRelative(distanceFromCurrentIndex) {
|
||||
var element = viewportUtils.getActiveViewportElement();
|
||||
cornerstoneTools.scroll(element, distanceFromCurrentIndex);
|
||||
scroll(element, distanceFromCurrentIndex);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user