← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 695: I added the CTRL drag vertical lock feature to "transitions", since they behave much like clips.

 

------------------------------------------------------------
revno: 695
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Sat 2012-09-08 14:50:06 -0500
message:
  I added the CTRL drag vertical lock feature to "transitions", since they behave much like clips.
modified:
  openshot/classes/transition.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/classes/transition.py'
--- openshot/classes/transition.py	2012-01-09 13:38:31 +0000
+++ openshot/classes/transition.py	2012-09-08 19:50:06 +0000
@@ -289,9 +289,17 @@
 
 				# mark project as modified
 				self.parent.parent.project.set_project_modified(is_modified=True, refresh_xml=True)
-				# move clip
-				item.translate (total_x_diff, total_y_diff)
+				
 
+				# Determine CTRL snapping amount (if CTRL key is pressed)
+				if not self.parent.parent.project.form._CTRL:
+					# move transition
+					item.translate (total_x_diff, total_y_diff)
+					
+				else:
+					# CTRL is pressed
+					# move transition vertically
+					item.translate (0, total_y_diff)
 
 
 		# RESIZE MODE