- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing. We have released our Java Swing Pack.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Inconsistent click behavior
Read 53 times

L1Z1X   Offline
YaBB Newbies
*
Posts: 1
I Love MindFusion!


   
     
 
Inconsistent click behavior
Jul 31st, 2017 at 12:01am
 
Hello,

I'm having issues with the click events on diagram nodes not consistently being invoked. I've set the behavior on my DiagramView to SelectOnly so that clicking (tapping) on a node will select it.

I have found that tapping the nodes will only select them if the tap is very light. If the user leaves their finger on the screen for any length of time or (from what I can tell) moves their fingertip at all while tapping, the node will not be selected.

I've found that there is a method on the DiagramView class for setting the dragThreshold. I've tried using this method to set a larger threshold but have not seen any change in behavior.

Has anyone else encountered this issue? Any ideas as to how I might resolve it?

Thanks!
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1141
Gender: male
tech.support


   
     
 
Re: Inconsistent click behavior
Reply #1 - Jul 31st, 2017 at 8:00am
 
Hi,

Indeed, click events are raised only if the touch hasn't moved more than view.getDragThreshold(). The threshold is specified in pixels, so it might require a larger value on high-resolution device - what values have you tried? Another possibility is the touch is no longer over the node when touch is released, please check if it isn't raising clicked  (for unoccupied diagram location) or linkClicked events instead of nodeClicked.

Regards,
Slavcho
Mindfusion
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print