Bug 505634

Summary: Selecting elements in a large graph has a delay
Product: [Tools] GEF Reporter: Christian B. <cmbspam>
Component: GEF ZestAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: m.pohl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Christian B. CLA 2016-10-10 07:32:17 EDT
When selecting nodes or edges in a large graph, certain actions have a delay while others happen instantly. The following could be observed with a graph with 250 nodes and 1000 edges. The GEF version is 5.0 Milestone 2.

Selecting a node with nothing previously selected has a delay.
Selecting a node when another one is already selected has no delay.
Deselecting one or multiple nodes (clicking on an empty spot) has a delay.
When selecting multiple nodes, the selection rectangle appears with a delay but selection after releasing the mouse button is instant.
The same goes for edges. Switching between edges and nodes also has a small delay.
Comment 1 Marc Pohl CLA 2019-02-13 03:11:09 EST
(GEF MVC FX 5.0.2)

I managed to get rid of the selection/deselection delay by modifying the default FocusBehavior (coming from GEF MVC FX).

The methods #addViewerFocusedFeedback() and #removeViewerFocusedFeedback always change the whole style of the underlying viewer's Canvas. After removing the style change the delay was gone and of course the blue focus-border as well.

This is no solution anyways, but it may help to fix this issue or help others who don't need the blue border.