HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Dragging objects simultaneously
Dragging objects simultaneously
  View type:
Hey:)
Is it possible to "fasten" 2 or more objects together so they can be dragged with a mouse simultaneously (if i click on object A and drag it, object B moves also and a distance between these two objects is kept)?
 
Just a thought here... Can you define what you're trying to do as there are a few choices as to what you actually mean.

Is it to drag two objects when editing.

Is it to drag two objects when playing the module.

The first is as Marius points out one of the fairly basic windows type operations using a multiple selection of files or objects.

The second is a totally different scenario, assuming that you want the the two objects to be bound together so that one or other follows the movements of the other. That is grab either and both move together.
 
 
Hi,
I meant dragging two objects when playing the module - sorry for the imprecision:-)
How to do that?
 
 
 
LOL Dunno but am giving it a go though!
I'm not convinced that it's possible, the change in position of object 1 needs to be passed to object 2 in 'real time' OR the 2nd object needs to poll the values at a fixed time interval to check if a moves been made and then add the x, y difference to it's position.
A problem might occur when an object gets to the slides boundary and moves away out of site.
The actual 'logic' of the method is very simple but implementing it in a general and easily reusable way avoiding custom js modules might not be.
 
 
 
 
Hi
I had a quick play but couldn't make it happen. I think more thought is needed!!
 
 
 
 
 
Hey:-)
I think I`ll just change my conception for less complicated...;> Many thanks anyway!
 
Select the first object by clicking on it, then keep the shift key pressed in and select all the other objects you would like to move. You can then drag them around with your mouse or use the arrow keys to move them.
 
Hi DW
Have you tried grouping these objects, see the user manual for details of how to do this.
This will probably allow the effect you want.
Nick
 
 
Can`t find the section on grouping anywhere in the manual:( Could you give me a tip please in which part should I search?:-)
Subject:
Message options
No additional options