@bebranded/bb-contents 1.0.75-beta → 1.0.76-beta
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/bb-contents.js +13 -5
- package/package.json +1 -1
package/bb-contents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BeBranded Contents
|
|
3
3
|
* Contenus additionnels français pour Webflow
|
|
4
|
-
* @version 1.0.
|
|
4
|
+
* @version 1.0.76-beta
|
|
5
5
|
* @author BeBranded
|
|
6
6
|
* @license MIT
|
|
7
7
|
* @website https://www.bebranded.xyz
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
// Configuration
|
|
43
43
|
const config = {
|
|
44
|
-
version: '1.0.
|
|
44
|
+
version: '1.0.76-beta',
|
|
45
45
|
debug: true, // Debug activé pour diagnostic
|
|
46
46
|
prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
|
|
47
47
|
youtubeEndpoint: null, // URL du worker YouTube (à définir par l'utilisateur)
|
|
@@ -437,23 +437,31 @@
|
|
|
437
437
|
|
|
438
438
|
console.log(`🔍 [MARQUEE] Safari - Position initiale: ${currentPosition}px, transform: ${initialTransform}`);
|
|
439
439
|
|
|
440
|
-
// Fonction d'animation Safari avec
|
|
440
|
+
// Fonction d'animation Safari avec debug des resets
|
|
441
|
+
let frameCount = 0;
|
|
441
442
|
const animate = () => {
|
|
442
443
|
if (!isPaused) {
|
|
444
|
+
frameCount++;
|
|
445
|
+
|
|
443
446
|
if (direction === (isVertical ? 'bottom' : 'right')) {
|
|
444
447
|
currentPosition += step;
|
|
445
|
-
// Reset standard pour direction bottom/right - 3 copies
|
|
446
448
|
if (currentPosition >= 0) {
|
|
449
|
+
console.log(`🔄 [MARQUEE] Safari RESET bottom/right: ${currentPosition} → ${-(finalContentSize + gapSize)}`);
|
|
447
450
|
currentPosition = -(finalContentSize + gapSize);
|
|
448
451
|
}
|
|
449
452
|
} else {
|
|
450
453
|
currentPosition -= step;
|
|
451
|
-
// Reset standard pour direction top/left - 3 copies
|
|
452
454
|
if (currentPosition <= -(2 * (finalContentSize + gapSize))) {
|
|
455
|
+
console.log(`🔄 [MARQUEE] Safari RESET top/left: ${currentPosition} → ${-(finalContentSize + gapSize)}`);
|
|
453
456
|
currentPosition = -(finalContentSize + gapSize);
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
459
|
|
|
460
|
+
// Log toutes les 60 frames (1 seconde)
|
|
461
|
+
if (frameCount % 60 === 0) {
|
|
462
|
+
console.log(`📍 [MARQUEE] Safari position: ${currentPosition}px (frame ${frameCount})`);
|
|
463
|
+
}
|
|
464
|
+
|
|
457
465
|
// ARRONDI pour éviter les erreurs de précision JavaScript
|
|
458
466
|
currentPosition = Math.round(currentPosition * 100) / 100;
|
|
459
467
|
|