Skip to content

Commit

Permalink
fix slider stuck bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fauskanger committed Jul 23, 2019
1 parent 9affaef commit 7716491
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ import './App.css';
const repoUrl = 'https://www.github.com/fauskanger/p5';


const startParams = {
reMin: -1.85,
reMax: 0.6,
imMin: -1.2,
imMax: 1.2,
maxIterations: 50,
colorEaseExponent: 1.0
};


class App extends Component {
p5Element = null;
// headerSection = null;
state = {
sketch: {
reMin: -1.85,
reMax: 0.6,
imMin: -1.2,
imMax: 1.2,
maxIterations: 50,
colorEaseExponent: 1.0
},
sketch: startParams,
tmpSketch: {},
loading: false,
headerHeight: 0
Expand Down Expand Up @@ -86,13 +87,13 @@ class App extends Component {
stateAttributeName: stateAttributeNameStart,
label: startLabel,
min, max, step,
validate: (newValue) => newValue < this.getTmpOrExistingSketchState(stateAttributeNameStart)
validate: (newValue) => newValue < this.getTmpOrExistingSketchState(stateAttributeNameEnd)
},
{
stateAttributeName: stateAttributeNameEnd,
label: endLabel,
min, max, step,
validate: (newValue) => newValue > this.getTmpOrExistingSketchState(stateAttributeNameEnd)
validate: (newValue) => newValue > this.getTmpOrExistingSketchState(stateAttributeNameStart)
},
];

Expand Down

0 comments on commit 7716491

Please sign in to comment.