Changeset 78
- Timestamp:
- 07/30/08 21:16:42 (4 months ago)
- Files:
-
- trunk/lily/lily/chrome/content/patch.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lily/lily/chrome/content/patch.js
r77 r78 892 892 } 893 893 894 if(opID ) {894 if(opID && !this.patchController.isMouseDown) { 895 895 o.controller.select({type:"paste"}); //if we're pasting, select the object after we create it. 896 896 } … … 906 906 } 907 907 908 if(opID ) {908 if(opID && !this.patchController.isMouseDown) { 909 909 c.controller.select({type:"paste"}); 910 910 } … … 1014 1014 this.paste=function() { 1015 1015 if(Lily.clipboard) { 1016 if(!thisPtr.patchController.isMouseDown)thisPtr.patchController.deselectAll() 1016 1017 var id=this.generateUID(); //new id 1017 this .openPatch(Lily.clipboard,id);1018 thisPtr.openPatch(Lily.clipboard,id); 1018 1019 thisPtr.patchController.notifyPatchListeners("patchModified"); 1019 1020 } … … 1219 1220 this.mouseY=0; 1220 1221 var mouseDownTime=new Date(); //init 1222 this.isMouseDown=false; //flag to tell if mouse is down. 1221 1223 1222 1224 this.editable="edit"; … … 1834 1836 thisPtr.mouseX=e.clientX; 1835 1837 thisPtr.mouseY=e.clientY; 1836 mouseDownTime=new Date(); 1838 mouseDownTime=new Date(); 1839 thisPtr.isMouseDown=true; 1837 1840 } 1838 1841 … … 1849 1852 var mouseUpTime=new Date(); 1850 1853 var diff=mouseUpTime.getTime()-mouseDownTime.getTime(); 1854 thisPtr.isMouseDown=false; 1851 1855 if(diff>300) { 1852 1856 okToCreate=false;
