Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Urgent:Mouse doesnt stop drawing (Read 2313 times)
RJ
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 27
Joined: Sep 4th, 2015
Urgent:Mouse doesnt stop drawing
Sep 30th, 2015 at 2:42pm
Print Post  
When i set the Diagram to draw a custom Rectangle shape, it doesnt stop drawing when i release my mouse.

I have event handlers for nodeCreated, nodeClicked and nodeDoubleClicked

Thanks,
Raji
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Urgent:Mouse doesnt stop drawing
Reply #1 - Sep 30th, 2015 at 4:07pm
Print Post  
In what manner are you setting the diagram to draw a custom rectangle?

I imagine this could happen if you show an alert from some mouse-related event, as the alert could take the mouse capture away from the diagram so it misses mouse-up event. I'm not sure if this is the case in JavaScript, but I have seen this happen a lot with message boxes in other platforms we support, where the solution is to either cancel the current drawing operation or move the message box to a different event handler.

Stoyan
  
Back to top
 
IP Logged
 
RJ
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 27
Joined: Sep 4th, 2015
Re: Urgent:Mouse doesnt stop drawing
Reply #2 - Sep 30th, 2015 at 4:43pm
Print Post  
I had a breakpoint in the code and that is what caused the issue. Thanks for your help.

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint