@glitchr/transparent 1.0.56 → 1.0.57
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/package.json +1 -1
- package/src/js/transparent.js +2 -3
package/package.json
CHANGED
package/src/js/transparent.js
CHANGED
|
@@ -315,7 +315,7 @@ jQuery.event.special.mousewheel = { setup: function( _, ns, handle ) { this.addE
|
|
|
315
315
|
responseText = responseText.outerHTML;
|
|
316
316
|
|
|
317
317
|
var array = JSON.parse(sessionStorage.getItem('transparent')) || [];
|
|
318
|
-
if(
|
|
318
|
+
if (!array.includes(uuid)) {
|
|
319
319
|
|
|
320
320
|
array.push(uuid);
|
|
321
321
|
while(array.length > Settings["response_limit"])
|
|
@@ -873,7 +873,6 @@ jQuery.event.special.mousewheel = { setup: function( _, ns, handle ) { this.addE
|
|
|
873
873
|
}.bind(this), active.delay);
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
|
|
877
876
|
Transparent.replaceCanvases = function(dom) {
|
|
878
877
|
|
|
879
878
|
// Extract existing canvas to avoid redrawing them.. (time consuming)
|
|
@@ -1378,7 +1377,7 @@ jQuery.event.special.mousewheel = { setup: function( _, ns, handle ) { this.addE
|
|
|
1378
1377
|
|
|
1379
1378
|
Transparent.remToPixel = function(rem) { return parseFloat(rem) * parseFloat(getComputedStyle(document.documentElement).fontSize); }
|
|
1380
1379
|
Transparent.emToPixel = function(em, el) { return parseFloat(em ) * parseFloat(getComputedStyle(el.parentElement).fontSize); }
|
|
1381
|
-
Transparent.percentToPixel = function(p , el) { return parseFloat(p ) * el.outerWidth(); }
|
|
1380
|
+
Transparent.percentToPixel = function(p , el) { return parseFloat(p ) * $(el).outerWidth(); }
|
|
1382
1381
|
Transparent.parseToPixel = function(str, el) {
|
|
1383
1382
|
|
|
1384
1383
|
if(str === undefined) return undefined;
|