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

Dragging a Polygon shape and I have a corner anchor

 
john kalaigian
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the following code in my paintComponent

And I want to find out why I'm always getting an anchor at the origin when I'm dragging out my polygon. What I mean by anchor is a static line attached to my start point and dynamic line moving with my mouse cursor while i'm dragging. They both go away when I release the mouse and the proper polygon remains - But whats the deal with the lines while I'm dragging.
Thanks in advance,
John
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!