You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constMIN_INTER_CLICK_TIME=(1/60*1000)*2;// min time between clicks, in milliseconds, empirically determined
...
// Keep track of the last time a sound was played so that we don't play too oftenlettimeOfLastClick=0;
Naming is really confusing here. If this did have something to do with "clicks", it would be better to call it "press", because click is mouse specific. And in fact it has nothing to do with click or press. It's the time between drag events.
Consider renaming for the benefit of future readers/maintainers.
The text was updated successfully, but these errors were encountered:
Noted while working on phetsims/fourier-making-waves#56, because I was told to use WaveInterferenceSlider.js as an example.
In WaveInterferenceSlider.js
Naming is really confusing here. If this did have something to do with "clicks", it would be better to call it "press", because click is mouse specific. And in fact it has nothing to do with click or press. It's the time between drag events.
Consider renaming for the benefit of future readers/maintainers.
The text was updated successfully, but these errors were encountered: