Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can move shapes individually but not as a group

 
Kieran Murray
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Hopefully as Mr Churchill said "This is the end of the beginning".

This code is supposed to drag both shapes individually and shapes as a group.

The boolean dragging works fine as a signal to move the shapes individually.

The boolean draggingScreen DOES NOT work for dragging all the object.
This should happen when a shape is not clicked. Everything should then be dragged.

I am not sure that I am using the AffineTransform properly.

Any help would be gratefully appreciated because I have been at this for four days and am going around in circles.



Kind regards,

The apprentice
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Let's go to the waterfront with this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!