Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Loop call while hovering cursor on top of canvas while integrating with angular 2

$
0
0

@JP wrote:

Hi,
I am using Gojs with angular 2 application.
In that, a method is calling continuously when I hover a cursor on top of gojs canvas.

In angular 2 to bind a div color I am using getColor1() method,
< div [style.color]="getColor1()">Red

So, the issue is If I hover a cursor on top of gojs canvas that getColor1() method is calling continuously. I am not sure why this behavior occurring.

// 38961 times called that method.

Because of this my application getting little hanging.

I have created on sample application on this: http://codepen.io/jothipandiyanjp/pen/dvyNMq?editors=1010
and look at the console as well as place your cursor on top of canvas.

Can you tell me why this behaviour happeing?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles