Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

doubleclick event comes with empty nodes array #1726

Closed
admhemed opened this issue Mar 14, 2016 · 3 comments
Closed

doubleclick event comes with empty nodes array #1726

admhemed opened this issue Mar 14, 2016 · 3 comments

Comments

@admhemed
Copy link

admhemed commented Mar 14, 2016

I use dataset.add() to load more nodes on doubleClick;
if total nodes number is small everything goes well,
after I reach about 400-600 nodes doubleClick event starts to come with an empty nodes array.
I'm using svg as node image, could this be the source of the issue?

visNetwork.on("doubleClick", function (params) {
                    console.log("doubleClick",params);
                    var nodes = params.nodes;
                    if (nodes.length > 0) {
                        .....
                    }
                });

Object {nodes: Array[0], edges: Array[0], pointer: Object, event: Object}

@admhemed
Copy link
Author

P.S. I disabled the svg node image and the problem continues,
I also tried the work around from #203 and also the same result, doubleclick event does not work after loading about 500 nodes

@Tooa
Copy link
Member

Tooa commented Jan 7, 2017

Can you provide your problem on jsbin.com? I will look into it.

@wimrijnders
Copy link
Contributor

Closed due to inactivity. Feel free to reopen if this is still relevant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants