Open gfmoore opened 4 years ago
Oh, I see the problem; onChange, I update the slider by slider.update which calls onChange ad infinitum. Uhmm, how to break that deadlock. Need a flag that I can reset.
Actually I don't think calling the update causes the onChange to trigger, it causes onUpdate to trigger.
The problem seems to be due to the observation that calling onUpdate causes the slider to lose focus.
I'm also noticing some weird Chrome warnings (on Edge) that point to multiple violations being generated on startup that it has to stop.
Here is my code
html
So I want moving the left slider to update the right slider. i.e if left slider is -1 right slider is +3, but continually. It works if I wait till the end of the move.
Is there some kind of timer in the code?
Result is I move left slider a small amount and it moves right slider a small amount and then STOPS.