@panoramax/web-viewer 5.2.0-develop-08c7a778 → 5.2.0-develop-0b4f95c7
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.
|
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
|
|
|
9
9
|
document.adoptedStyleSheets.push(AtkinsonStyles);
|
|
10
10
|
document.adoptedStyleSheets.push(BasicStyles);
|
|
11
11
|
|
|
12
|
-
const __COMMIT_HASH__ = "
|
|
12
|
+
const __COMMIT_HASH__ = "0b4f95c";
|
|
13
13
|
const __PACKAGE_VERSION__ = "5.2.0";
|
|
14
14
|
const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
|
|
15
15
|
|
|
@@ -137,8 +137,8 @@ export default class ClickAndGo {
|
|
|
137
137
|
const sizeFactor = cursorSizeFactor(rad2deg(yp.pitch));
|
|
138
138
|
const cursorHeight = CURSOR_SIZE * 2/5 * sizeFactor;
|
|
139
139
|
const cursorWidth = CURSOR_SIZE * sizeFactor;
|
|
140
|
-
this._cursor.style.top = `${e.
|
|
141
|
-
this._cursor.style.left = `${e.
|
|
140
|
+
this._cursor.style.top = `${e.layerY - 3 * cursorHeight / 5}px`;
|
|
141
|
+
this._cursor.style.left = `${e.layerX - cursorWidth / 2}px`;
|
|
142
142
|
this._cursor.style.height = `${cursorHeight}px`;
|
|
143
143
|
this._cursor.style.width = `${cursorWidth}px`;
|
|
144
144
|
this._cursor.style.display = "block";
|
package/package.json
CHANGED