@@ -106,7 +106,7 @@ public void barWidth(int length) {
106106 private void limits (float iv , float fv ) {
107107 vMin = iv ;
108108 vMax = fv ;
109- SliderBar . this . initialValue (iv );
109+ initialValue (iv );
110110 }
111111
112112 /**
@@ -178,7 +178,7 @@ public void showBackground() {
178178 * @param s
179179 */
180180 public void labelSize (int s ) {
181- labelSize = ( s < 4 ) ? 4 : s ;
181+ labelSize = s < 4 ? 4 : s ;
182182 }
183183
184184 /**
@@ -301,11 +301,10 @@ public void initialValue(float value) {
301301
302302 private void checkMouse () {
303303 if (debug ) {
304- if (mouseOver () && applet .keyPressed && applet .mouseButton == PConstants .LEFT && applet .mousePressed ) {
305- if ( applet .keyCode == PConstants .CONTROL ) {
304+ if (mouseOver () && applet .keyPressed && applet .mouseButton == PConstants .LEFT && applet .mousePressed
305+ && applet .keyCode == PConstants .CONTROL ) {
306306 pX = pX + applet .mouseX - applet .pmouseX ;
307307 pY = pY + applet .mouseY - applet .pmouseY ;
308- }
309308 if (applet .keyCode == PConstants .SHIFT && pressOnlyOnce ) {
310309 System .out .println (toString ());
311310 pressOnlyOnce = false ;
@@ -377,12 +376,11 @@ public void changeWithWheel(int delta) {
377376 if (applet .keyPressed && applet .keyCode == PConstants .CONTROL ) {
378377 delta = delta * (int ) (vMax / 4 );
379378 }
380- SliderBar . this . initialValue (pValue + delta );
379+ initialValue (pValue + delta );
381380 }
382381
383382 private void deBounce (int n ) {
384- if (pressOnlyOnce ) {
385- } else if (deb ++ > n ) {
383+ if (!pressOnlyOnce && deb ++ > n ) {
386384 deb = 0 ;
387385 pressOnlyOnce = true ;
388386 }
0 commit comments