Hi,

here's a simple patch that adds quite a handy feature. 

Modern mice have wheels that can be pushed sideways. The attached patch makes 
cinelerra scroll horizontally in the timeline, when the wheel is pushed 
sideways in the timeline canvas.

Feel free to use the patch or apply it to mainline.


Johannes


diff --git a/cinelerra/trackcanvas.C b/cinelerra/trackcanvas.C
index a820f75..a9a630f 100644
--- a/cinelerra/trackcanvas.C
+++ b/cinelerra/trackcanvas.C
@@ -5148,6 +5148,27 @@ int TrackCanvas::button_press_event()
 				mwindow->move_down(get_h() / 10);
 			result = 1;
 		}
+		if(get_buttonpress() == 6)
+                {
+			if(ctrl_down())
+				mwindow->move_left(get_w());
+			else if(alt_down())
+				mwindow->move_left(get_w() / 20);
+			else
+				mwindow->move_left(get_w() / 5);
+			result = 1;
+		}
+		else
+		if(get_buttonpress() == 7)
+                {
+			if(ctrl_down())
+				mwindow->move_right(get_w());
+			else if(alt_down())
+				mwindow->move_right(get_w() / 20);
+			else
+				mwindow->move_right(get_w() / 5);
+			result = 1;
+		}
 		else
 		switch(mwindow->edl->session->editing_mode)
 		{
_______________________________________________
Cinelerra mailing list
Cinelerra@skolelinux.no
https://lists.skolelinux.org/listinfo/cinelerra

Reply via email to