Skip to content

Commit

Permalink
🐙
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky Reusser committed Jul 17, 2020
1 parent 157ed9e commit f026b4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boys-surface/bundle.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion src/src/boys-surface/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ canvas {
display: inline-block;
position: fixed !important;
}
.control-panel {
pointer-events: none;
padding-bottom: 500px;
}
.control-panel > .control-panel__section {
pointer-events: all;
}
`)

function createDrawBoysSurface (regl, res, state) {
Expand Down Expand Up @@ -330,7 +340,8 @@ const state = State({
}, {expanded: false, label: 'Rendering'}),
});
GUI(state, {
containerCSS: "position:absolute; top:0; right:10px; width:350px; margin-bottom: 500px",
className: 'control-panel',
containerCSS: "position:absolute; top:0; right:10px; width:350px; margin-bottom: 500px; overflow: hidden",
});

state.surface.$onChanges(function (updates) {
Expand Down

0 comments on commit f026b4f

Please sign in to comment.