Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
futahei committed Jul 5, 2022
1 parent 79777bf commit 0de21a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/figni-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1292,11 +1292,9 @@ export default class FigniViewerElement extends HTMLElement {
this.openTipsPanel(TIPS.DRAG)
}
const timer = setInterval(() => {
if (this.base.loaded && this.base.modelIsVisible) {
hide()
clearInterval(timer)
}
}, 1000)
hide()
clearInterval(timer)
}, 3000)
this.addEventListener('load', () => {
hide()
clearInterval(timer)
Expand Down
1 change: 1 addition & 0 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ figni-viewer {
height: 100%;
width: 0;
min-height: 1px;
min-width: 1px;
}
--figni-viewer-primary: #ff733b;
--figni-viewer-secondary: #3b5eff;
Expand Down

0 comments on commit 0de21a2

Please sign in to comment.