Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #243 from xuanvan229/master
Browse files Browse the repository at this point in the history
fix: didn't hide infospot when change panorama
  • Loading branch information
flyandi committed Feb 17, 2021
2 parents 06ec3f1 + 344f649 commit 0ca971b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/infospot/Infospot.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,12 @@ Infospot.prototype = Object.assign( Object.create( THREE.Sprite.prototype ), {
*/
hide: function ( delay = 0 ) {

const { animated, hideAnimation, showAnimation, material } = this;
const { animated, hideAnimation, showAnimation, material, element } = this;

if ( element ) {
const { style } = element;
style.display = 'none';
}

if ( animated ) {

Expand Down

0 comments on commit 0ca971b

Please sign in to comment.