Bug 505634 - Selecting elements in a large graph has a delay
Summary: Selecting elements in a large graph has a delay
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF Zest (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-10 07:32 EDT by Christian B. CLA
Modified: 2019-02-13 03:11 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.