# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- Base (BASE) +++ Locally Modified (Based On LOCAL) @@ -78,6 +78,10 @@ Collection regions = collector.getRegions (widget); if (horizontal) { + boolean middle = false; + int mx = 0; + int b3 = sceneWidgetBounds.x + (sceneWidgetBounds.width/2); + boolean snap = false; int xs = 0, x = 0, dx = 0, y1 = 0, y2 = 0; @@ -87,6 +91,7 @@ for (Rectangle rectangle : regions) { int a1 = rectangle.x; int a2 = a1 + rectangle.width; + int a3 = a1 +(rectangle.width/2); int d; boolean snapNow = false; @@ -125,6 +130,14 @@ } } + d = Math.abs(a3 - b3); + if((snap && d