Skip to content

Commit

Permalink
Release 4.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed May 20, 2022
2 parents 64e6670 + c2d70f1 commit ec4dcbb
Show file tree
Hide file tree
Showing 37 changed files with 141 additions and 81 deletions.
2 changes: 1 addition & 1 deletion dist/adapters/cubemap-tiles.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/adapters/cubemap-video.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/adapters/cubemap-video.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/adapters/cubemap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/adapters/equirectangular-tiles.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/adapters/equirectangular-video.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/adapters/equirectangular-video.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/photo-sphere-viewer.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 49 additions & 22 deletions dist/photo-sphere-viewer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/photo-sphere-viewer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins/autorotate-keypoints.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/compass.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/compass.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions dist/plugins/gyroscope.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/gyroscope.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins/markers.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/plugins/markers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/markers.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins/resolution.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/settings.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/settings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/stereo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/video.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/video.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/virtual-tour.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/virtual-tour.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/visible-range.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photo-sphere-viewer",
"version": "4.6.1",
"version": "4.6.2",
"description": "A JavaScript library to display Photo Sphere panoramas",
"homepage": "https://photo-sphere-viewer.js.org",
"main": "dist/photo-sphere-viewer.js",
Expand Down Expand Up @@ -33,7 +33,7 @@
"url": "git://github.com/mistic100/Photo-Sphere-Viewer.git"
},
"dependencies": {
"three": "^0.139.0",
"three": "^0.140.0",
"uevent": "^2.1.1"
},
"devDependencies": {
Expand All @@ -52,15 +52,15 @@
"@vuepress/plugin-back-to-top": "^1.8.2",
"@vuepress/plugin-google-analytics": "^1.8.2",
"autoprefixer": "^10.3.3",
"axios": "^0.26.0",
"axios": "^0.27.0",
"cpx2": "^4.1.2",
"date-fns": "^2.23.0",
"eslint": "^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.2",
"jsdoc": "^3.6.7",
"marked": "^4.0.0",
"mocha": "^9.1.1",
"mocha": "^10.0.0",
"nosleep.js": "^0.12.0",
"npm-run-all": "^4.1.3",
"postcss": "^8.3.6",
Expand Down
3 changes: 2 additions & 1 deletion src/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ export class Viewer extends EventEmitter {
this.setPanorama(this.config.panorama);
}

SYSTEM.isTouchEnabled.then(enabled => toggleClass(this.container, 'psv--is-touch', enabled));
toggleClass(this.container, 'psv--is-touch', SYSTEM.isTouchEnabled.initial);
SYSTEM.isTouchEnabled.promise.then(enabled => toggleClass(this.container, 'psv--is-touch', enabled));

// enable GUI after first render
this.once(EVENTS.RENDER, () => {
Expand Down
1 change: 1 addition & 0 deletions src/adapters/shared/AbstractVideoAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export class AbstractVideoAdapter extends AbstractAdapter {
const video = document.createElement('video');
video.crossOrigin = this.psv.config.withCredentials ? 'use-credentials' : 'anonymous';
video.loop = true;
video.playsinline = true;
video.style.display = 'none';
video.muted = this.config.muted;
video.src = src;
Expand Down
5 changes: 4 additions & 1 deletion src/buttons/AbstractMoveButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ export class AbstractMoveButton extends AbstractButton {
* @override
*/
isSupported() {
return { initial: true, promise: SYSTEM.isTouchEnabled.then(enabled => !enabled) };
return {
initial: !SYSTEM.isTouchEnabled.initial,
promise: SYSTEM.isTouchEnabled.promise.then(enabled => !enabled),
};
}

/**
Expand Down
Loading

0 comments on commit ec4dcbb

Please sign in to comment.