@mxtommy/kip 3.0.0-alpha.26 → 3.0.0-alpha.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxtommy/kip",
3
- "version": "3.0.0-alpha.26",
3
+ "version": "3.0.0-alpha.28",
4
4
  "description": "An advanced and versatile marine instrumentation package to display Signal K data.",
5
5
  "license": "MIT",
6
6
  "author": {
package/public/main.js CHANGED
@@ -125257,6 +125257,7 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125257
125257
  console.log("Received iframe gesture:", event.data.gesture);
125258
125258
  const swipeEvent = new CustomEvent(event.data.gesture, { detail: event.data, bubbles: true, cancelable: true });
125259
125259
  window.dispatchEvent(swipeEvent);
125260
+ document.body.dispatchEvent(swipeEvent);
125260
125261
  };
125261
125262
  injectHammerJS() {
125262
125263
  const iframeWindow = this.iframe().nativeElement.contentWindow;
@@ -125326,19 +125327,7 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125326
125327
 
125327
125328
  hammer.on('swipeup', (ev) => {
125328
125329
  const eventData = {
125329
- type: ev.type,
125330
- deltaX: ev.deltaX,
125331
- deltaY: ev.deltaY,
125332
- velocityX: ev.velocityX,
125333
- velocityY: ev.velocityY,
125334
- direction: ev.direction,
125335
- distance: ev.distance,
125336
- angle: ev.angle,
125337
- center: ev.center,
125338
- offsetDirection: ev.offsetDirection,
125339
- scale: ev.scale,
125340
- rotation: ev.rotation,
125341
- isFinal: ev.isFinal
125330
+ ...ev
125342
125331
  };
125343
125332
  window.parent.postMessage({ gesture: 'swipeup', eventData: eventData }, '*');
125344
125333
  });