LT-127: Enable to scroll fluidly through images in FF and IE (WIP)

This commit is contained in:
Aysel Afsar 2016-01-15 22:33:18 -05:00
parent f9d697dea0
commit c023b35bd3
3 changed files with 5 additions and 3 deletions

View File

@ -1026,7 +1026,7 @@ var cornerstoneMath = (function (cornerstoneMath) {
if (r1 !== 0 &&
r2 !== 0 &&
cornerstoneMath.sign(r1) === cornerstoneMath.sign(r2)) {
return
return;
}
/* Line segments intersect: compute intersection point.

View File

@ -1,5 +1,5 @@
Template.imageControls.events({
'input #imageSlider': function(e) {
'change #imageSlider': function(e) {
// Using the slider in an inactive viewport
// should cause that viewport to become active
var slider = $(e.currentTarget);

View File

@ -19,5 +19,7 @@ setActiveViewport = function(element) {
displayReferenceLines(element);
// Set the div to focused, so keypress events are handled
$(element).focus();
//$(element).focus();
//.focus() event breaks in FF&IE
$(element).triggerHandler("focus");
};