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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor animation is affected by update in interval #932

Open
jcubic opened this issue Apr 24, 2024 · 1 comment
Open

Cursor animation is affected by update in interval #932

jcubic opened this issue Apr 24, 2024 · 1 comment
Labels

Comments

@jcubic
Copy link
Owner

jcubic commented Apr 24, 2024

Issue summary

If you have update every 500ms, it affect the cursor animation

Expected behavior

CSS animation is not affected by term::update()

Actual behavior

Every other blink it gives few frames without blinking

Steps to reproduce

  1. Open Timer demo https://codepen.io/jcubic/pen/PogVJmB?editors=0010
  2. focus and wait few seconds

Browser and OS

N/A

Additional notes

It may be caused by a call to reset the animation in CMD.

@jcubic jcubic added the Bug label Apr 24, 2024
@jcubic
Copy link
Owner Author

jcubic commented Apr 25, 2024

The problem is that term::flush() call this code at the end:

if (enabled && !is_mobile) {
    // Firefox won't reflow the cursor automatically, so
    // hide it briefly then reshow it
    cmd_cursor.hide();
    self.oneTime(1, 'flush', function() {
        cmd_cursor.show();
    });
}

So it may be not possible to fix.

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

No branches or pull requests

1 participant