dwv 0.26.1 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dwv.js +4 -15
- package/dist/dwv.min.js +2 -2
- package/package.json +1 -1
package/dist/dwv.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! dwv 0.26.
|
|
1
|
+
/*! dwv 0.26.2 2023-02-11 18:46:33 */
|
|
2
2
|
// Inspired from umdjs
|
|
3
3
|
// See https://github.com/umdjs/umd/blob/master/templates/returnExports.js
|
|
4
4
|
(function (root, factory) {
|
|
@@ -2744,6 +2744,7 @@ dwv.ToolboxController = function ()
|
|
|
2744
2744
|
canvas.removeEventListener("mouseup", onMouch);
|
|
2745
2745
|
canvas.removeEventListener("mouseout", onMouch);
|
|
2746
2746
|
canvas.removeEventListener("mousewheel", onMouch);
|
|
2747
|
+
canvas.removeEventListener("wheel", onMouch);
|
|
2747
2748
|
canvas.removeEventListener("DOMMouseScroll", onMouch);
|
|
2748
2749
|
canvas.removeEventListener("dblclick", onMouch);
|
|
2749
2750
|
// touch listeners
|
|
@@ -2794,6 +2795,7 @@ dwv.ToolboxController = function ()
|
|
|
2794
2795
|
event.type === "mouseup" ||
|
|
2795
2796
|
event.type === "mouseout" ||
|
|
2796
2797
|
event.type === "mousewheel" ||
|
|
2798
|
+
event.type === "wheel" ||
|
|
2797
2799
|
event.type === "dblclick" ||
|
|
2798
2800
|
event.type === "DOMMouseScroll" )
|
|
2799
2801
|
{
|
|
@@ -3633,7 +3635,7 @@ dwv.dicom = dwv.dicom || {};
|
|
|
3633
3635
|
* Get the version of the library.
|
|
3634
3636
|
* @return {String} The version of the library.
|
|
3635
3637
|
*/
|
|
3636
|
-
dwv.getVersion = function () { return "0.26.
|
|
3638
|
+
dwv.getVersion = function () { return "0.26.2"; };
|
|
3637
3639
|
|
|
3638
3640
|
/**
|
|
3639
3641
|
* Clean string: trim and remove ending.
|
|
@@ -24766,19 +24768,6 @@ dwv.tool.Scroll = function(app)
|
|
|
24766
24768
|
self.mouseup(event);
|
|
24767
24769
|
};
|
|
24768
24770
|
|
|
24769
|
-
/**
|
|
24770
|
-
* Handle mouse scroll event (fired by Firefox).
|
|
24771
|
-
* @param {Object} event The mouse scroll event.
|
|
24772
|
-
*/
|
|
24773
|
-
this.DOMMouseScroll = function (event) {
|
|
24774
|
-
// ev.detail on firefox is 3
|
|
24775
|
-
if ( event.detail < 0 ) {
|
|
24776
|
-
mouseScroll(true);
|
|
24777
|
-
} else {
|
|
24778
|
-
mouseScroll(false);
|
|
24779
|
-
}
|
|
24780
|
-
};
|
|
24781
|
-
|
|
24782
24771
|
/**
|
|
24783
24772
|
* Handle mouse wheel event.
|
|
24784
24773
|
* @param {Object} event The mouse wheel event.
|