@eeacms/volto-arcgis-block 0.1.247 → 0.1.248

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/CHANGELOG.md CHANGED
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.248](https://github.com/eea/volto-arcgis-block/compare/0.1.247...0.1.248) - 12 January 2024
8
+
7
9
  ### [0.1.247](https://github.com/eea/volto-arcgis-block/compare/0.1.246...0.1.247) - 10 January 2024
8
10
 
9
11
  ### [0.1.246](https://github.com/eea/volto-arcgis-block/compare/0.1.245...0.1.246) - 10 January 2024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.247",
3
+ "version": "0.1.248",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -465,8 +465,8 @@ class TimesliderWidget extends React.Component {
465
465
  document.querySelector(
466
466
  '.esri-ui-bottom-right.esri-ui-corner',
467
467
  ).style.pointerEvents = 'auto';
468
- this.drag.x = e.screenX - e.currentTarget.getBoundingClientRect().left;
469
- this.drag.y = e.screenY - e.currentTarget.getBoundingClientRect().top;
468
+ this.drag.x = e.screenX - e.currentTarget.getBoundingClientRect().right;
469
+ this.drag.y = e.screenY - e.currentTarget.getBoundingClientRect().bottom;
470
470
  }
471
471
 
472
472
  onDragOver(e) {
@@ -474,17 +474,17 @@ class TimesliderWidget extends React.Component {
474
474
  }
475
475
 
476
476
  onDrop(e) {
477
- let left =
478
- e.screenX -
477
+ let right =
479
478
  this.drag.x -
480
- e.currentTarget.getBoundingClientRect().left +
479
+ e.screenX +
480
+ e.currentTarget.getBoundingClientRect().right +
481
481
  'px';
482
- let top =
483
- e.screenY -
482
+ let bottom =
484
483
  this.drag.y -
485
- e.currentTarget.getBoundingClientRect().top +
484
+ e.screenY +
485
+ e.currentTarget.getBoundingClientRect().bottom +
486
486
  'px';
487
- this.setState({ styles: { left: left, top: top } });
487
+ this.setState({ styles: { right: right, bottom: bottom } });
488
488
  this.drag.frame.style.visibility = 'hidden';
489
489
  document.querySelector(
490
490
  '.esri-ui-bottom-right.esri-ui-corner',