Solve positioning (draggable) of multiple html objects (with different scaling)

Cancelled Posted 5 years ago Paid on delivery
Cancelled Paid on delivery

Check JS-fiddle:

[login to view URL]

Scenario 1: Normal scale on object and

Everything works as expected: when selecting on object you can move it (no jitter on initial move), selecting multple objects moves as expected.

Scenario 2: Different scales on each object (eg, $("#obj1").css("transform","scale(0.7)");)

Dragging one object gives an intial "jump", selecting multple sees the same issue. When moving multiple object they don't move uniformly and move a different amount of pixels.

Scenario 3: Scaled container$("#container").css("transform","scale("+containerScaleFactor+")");)

Container is scaled, objects now jump around and move a different number of pixels.

Scenario 4: Both scaled container and objects

Same as scenario 2 and 3 but worse.

Need help solving so all scenarios work as scenario 1, eg possible to move multiple objects, with no jumping and they move the same number of pixels.

Jquery, draggable and selectable used. Only Jquery allowed and no changes to the included JQUERY-files

JavaScript jQuery

Project ID: #18703874

About the project

1 proposal Remote project Active 5 years ago

1 freelancer is bidding on average $25 for this job

umashankarpandey

Hi there, I’ve read your brief and can see that you’d like to done a project. My team has 8 years experience designing and developing mobile apps for iPhone and Android and web apps. I would approach your project by st More

$25 USD in 1 day
(6 Reviews)
3.8