-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Speed up hover timing for inserter #23043
Conversation
Size Change: +4 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Alternative to #23043, props @MichaelArestad. This one is faster, but still delayed.
Nice, thank you for the PR! This is what I see before: This is what I seee after: Honestly this feels both a little flickery, and too fast. It doesn't seem to solve the problem that was initially the genesis of the delayed fade-in — overlap with resize handles such as those in the spacer or cover blocks. In #23046 I tried an alternative that's still delayed, but much less so. It doesn't flicker, even if the fade isn't very smooth (not enough frames). I realize with the 0 until 80% fade that I'm "faking" a delay, but that's because actual delay property did not appear to work very well for this. I think it works a little better: We could also try a different approach:
That looks like this which seems an okay balance? What do you think? |
@jasmussen It turns out the jank is likely caused by inserter jumping. I made an issue that really shows it well where I reduced the animation to almost zero. |
Thanks for creating that issue. In the mean time, should we go with the slightly weird syntax that at least works around that issue? |
Alternative to #23043, props @MichaelArestad. This one is faster, but still delayed. Co-authored-by: Joen Asmussen <asmussen@gmail.com>
Can this one be closed now that #23046 is merged? |
@jasmussen Yep. Closing. Will create a new one if that bug gets fixed. |
Inspired by conversation in #22813 and in response to #22801, I sped up the timing and dramatically reduced the delay of the hover animation on the inserter.
I'm going for a delay just long enough to allow you to move your cursor over several blocks without flashing the inserter, but fast enough where the inserter is still discoverable.
I am noticing a bug that I don't think is related to this PR and would appreciate someone else confirming it. When hovering around the inserter, sometimes it flashes extremely quickly. I think this has to do with the location of the mouse being misinterpreted by the inserter JS or something as if I mouse just right, the inserter appears in the wrong spot. Gif below:
How has this been tested?
I tested this on FF (latest) on MacOS (latest).
Screenshots
Screenshots just don't do this justice and gifs are a bit stuttery. It's probably better to test yourself to get a feel for it.
Checklist: