LT-127: Enable to scroll fluidly through images in FF and IE (WIP)
This commit is contained in:
parent
f9d697dea0
commit
c023b35bd3
@ -1026,7 +1026,7 @@ var cornerstoneMath = (function (cornerstoneMath) {
|
|||||||
if (r1 !== 0 &&
|
if (r1 !== 0 &&
|
||||||
r2 !== 0 &&
|
r2 !== 0 &&
|
||||||
cornerstoneMath.sign(r1) === cornerstoneMath.sign(r2)) {
|
cornerstoneMath.sign(r1) === cornerstoneMath.sign(r2)) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Line segments intersect: compute intersection point.
|
/* Line segments intersect: compute intersection point.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
Template.imageControls.events({
|
Template.imageControls.events({
|
||||||
'input #imageSlider': function(e) {
|
'change #imageSlider': function(e) {
|
||||||
// Using the slider in an inactive viewport
|
// Using the slider in an inactive viewport
|
||||||
// should cause that viewport to become active
|
// should cause that viewport to become active
|
||||||
var slider = $(e.currentTarget);
|
var slider = $(e.currentTarget);
|
||||||
|
|||||||
@ -19,5 +19,7 @@ setActiveViewport = function(element) {
|
|||||||
displayReferenceLines(element);
|
displayReferenceLines(element);
|
||||||
|
|
||||||
// Set the div to focused, so keypress events are handled
|
// Set the div to focused, so keypress events are handled
|
||||||
$(element).focus();
|
//$(element).focus();
|
||||||
|
//.focus() event breaks in FF&IE
|
||||||
|
$(element).triggerHandler("focus");
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue
Block a user