resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / ClutterFiles.vala
index 9c24d5d..f10613d 100644 (file)
@@ -366,9 +366,18 @@ public class Xcls_ClutterFiles : Object
                         y = float.max(bottompos, y);
                         
                         
+                        break;
+                         case Clutter.ScrollDirection.SMOOTH:
+                           double delta_x, delta_y;
+                           event.get_scroll_delta(out delta_x, out delta_y);
+                        //print("Scroll SMOOTH? by %f\n",  delta_y * event.y);
+                        y += ((float)delta_y * event.y * -1.0f) /2 ;
+                        y = float.max(bottompos, y);
+                        y = float.min(0, y); // 
+                                   
                         break;
                     default:
-                       print("scroll event = bad direction\n");
+                       print("scroll event = bad direction %s\n", dir.to_string());
                         return false;
                 }
                 // range of scroll -- can go up -- eg.. -ve value.