You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will notice that if you move the cursor while the editor has focus, the coordinates of the cursor won't update until you blur the editor. A workaround I found was to manually trigger change detection, so it seems like wrapping the event listener with NgZone.run() can fix this.
If you wish, I can work on a PR for this. Thanks for creating this project!
The text was updated successfully, but these errors were encountered:
Hi Uri, I think I was looking at why so many change detection cycles were being triggered and turned a few things off. I've turned change detection back on for cursorActivity and left it off for scroll activity and added a note to the readme for that.
p.s. I am using ngx-codemirror for tsquery-playground, which visualizes the AST for given TypeScript code. Going to update it now with the new release :)
Here is an example that reproduces this issue:
https://stackblitz.com/edit/code-mirror-issue?file=src%2Fapp%2Fapp.component.html
You will notice that if you move the cursor while the editor has focus, the coordinates of the cursor won't update until you blur the editor. A workaround I found was to manually trigger change detection, so it seems like wrapping the event listener with
NgZone.run()
can fix this.If you wish, I can work on a PR for this. Thanks for creating this project!
The text was updated successfully, but these errors were encountered: