Skip to content

Commit 1c9b11d

Browse files
committed
Merge branch 'feature/bg-for-transparent-gif' into develop
[SVCS-918] Closes: #351
2 parents ead3389 + 4ba1f1a commit 1c9b11d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mfr/extensions/image/static/js/jquery.zoom.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
* Original Copy: https://github.com/jackmoore/zoom/blob/1.7.20/jquery.zoom.js
55
* Version: https://github.com/jackmoore/zoom/releases/tag/1.7.20
66
*
7-
* The are two MFR customizations in this file, one for style and one for functionality
7+
* The are three MFR customizations in this file, two for style and one for functionality
88
*
99
* 1. Updated code style according to `.eslintrc.js`
1010
* 2. Added `.on("mousewheel", function (e) { ... })` to enable further zoom by mouse wheel scroll
11+
* 3. Set "background-color: white" for "zoomImage" to handle images with transparent background
1112
*/
1213

1314
(function ($) {
@@ -53,6 +54,7 @@
5354
top: 0,
5455
left: 0,
5556
opacity: 0,
57+
"background-color": "white",
5658
width: img.width * magnify,
5759
height: img.height * magnify,
5860
border: "none",

0 commit comments

Comments
 (0)