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

This commit is contained in:
Aysel Afsar committed 2016-01-15 22:33:18 -05:00
1 parent f9d697dea0
commit c023b35bd3
3 files changed
+5 -3

No files matched your search

@@ -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.
@@ -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);
+3 -1
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");
};