@mywallpaper/addon-sdk 2.16.0 → 2.17.0
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/runtime/addon-client.js +14 -1
package/package.json
CHANGED
|
@@ -928,5 +928,18 @@
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
|
|
931
|
-
|
|
931
|
+
// ==========================================================================
|
|
932
|
+
// CURSOR SUPPORT: Forward mouse position to parent for cursor overlays
|
|
933
|
+
// This allows cursor addons to track mouse even when over addon iframes
|
|
934
|
+
// ==========================================================================
|
|
935
|
+
window.addEventListener('mousemove', function (e) {
|
|
936
|
+
window.parent.postMessage({
|
|
937
|
+
type: 'ADDON_MOUSE_MOVE',
|
|
938
|
+
layerId: layerId,
|
|
939
|
+
clientX: e.clientX,
|
|
940
|
+
clientY: e.clientY
|
|
941
|
+
}, '*')
|
|
942
|
+
}, { passive: true })
|
|
943
|
+
|
|
944
|
+
console.warn('[MyWallpaper] SDK v2.17.0 ready:', layerId)
|
|
932
945
|
})()
|