@panoramax/web-viewer 5.3.0-develop-9164b4a5 → 5.3.0-develop-7456af38

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__ = "9164b4a";
12
+ const __COMMIT_HASH__ = "7456af3";
13
13
  const __PACKAGE_VERSION__ = "5.3.0";
14
14
  const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
15
15
 
@@ -18,13 +18,14 @@ export default class PhotoAdapter extends EquirectangularTilesAdapter {
18
18
  if(!panorama.origBaseUrl) { panorama.origBaseUrl = panorama.baseUrl; }
19
19
  else { panorama.baseUrl = panorama.origBaseUrl; }
20
20
 
21
- // Fast mode + thumbnail available + no HD image loaded yet + flat picture
21
+ // Fast mode + thumbnail available + no HD image loaded yet + flat picture + not cropped 360°
22
22
  if(
23
23
  this._shouldGoFast()
24
24
  && panorama.thumbUrl
25
25
  && !panorama.hdLoaded
26
26
  // eslint-disable-next-line eqeqeq
27
27
  && panorama.rows == 1
28
+ && panorama.cropData?.croppedWidth !== panorama.cropData?.fullWidth
28
29
  ) {
29
30
  panorama.baseUrl = panorama.thumbUrl;
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.3.0-develop-9164b4a5",
3
+ "version": "5.3.0-develop-7456af38",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",