@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
|
@@ -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().
|
|
469
|
-
this.drag.y = e.screenY - e.currentTarget.getBoundingClientRect().
|
|
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
|
|
478
|
-
e.screenX -
|
|
477
|
+
let right =
|
|
479
478
|
this.drag.x -
|
|
480
|
-
e.
|
|
479
|
+
e.screenX +
|
|
480
|
+
e.currentTarget.getBoundingClientRect().right +
|
|
481
481
|
'px';
|
|
482
|
-
let
|
|
483
|
-
e.screenY -
|
|
482
|
+
let bottom =
|
|
484
483
|
this.drag.y -
|
|
485
|
-
e.
|
|
484
|
+
e.screenY +
|
|
485
|
+
e.currentTarget.getBoundingClientRect().bottom +
|
|
486
486
|
'px';
|
|
487
|
-
this.setState({ styles: {
|
|
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',
|