Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found ngif will be block mousemove event #29323

Closed
huan-qi opened this Issue Mar 15, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@huan-qi
Copy link

huan-qi commented Mar 15, 2019

馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃

<div #testDiv style="width: 1000px; height: 1000px; background-color: #808080">
  <canvas id="testCanvas"></canvas>
</div>

<div *ngFor="let data of testlist">
  <span *ngFor="let data of testlist">
    <span *ngIf="data.id != null"></span>

  </span>
</div>

I tested mousemove this way. listening 'testDiv' mousemove event.
if i do not use ngif 锛宼he mousemove execution frequency is 16ms.
when i use the ngif , the mousemove execution frequency is 25ms.
if i subscribe to the mousemove event twice, the execution frequency will be 77ms.

my data length is 100.

馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃

@pkozlowski-opensource

This comment has been minimized.

Copy link
Member

pkozlowski-opensource commented Mar 15, 2019

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.

If the problem still exists in your application, please open a new issue and follow the instructions in the issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.