Repository navigation
Land hover at once and fade it out - #10
Merged
Merged
Conversation
kitlangton
force-pushed
the
instant-hover
branch
from
October 23, 2026 18:18
46c9c07 to
e1ca920
Compare
adeerkhan
added a commit
to adeerkhan/rune
that referenced
this pull request
Nov 12, 2026
The completion thread polls the device in a loop, and `SurfaceRenderer` had no `Drop`, so its fields dropped in declaration order: the wgpu `Device` first, then the sender that ends the thread's wait. The thread was therefore still polling a device that was being torn down, and the poll reached driver state that had already gone. It shows up as a SIGSEGV in the Vulkan driver at process exit: anomalyco#2 <ash::device::Device>::get_semaphore_counter_value () anomalyco#3 <wgpu_hal::vulkan::Fence>::get_latest () anomalyco#6 <wgpu_core::device::resource::Device>::maintain () anomalyco#10 <wgpu::api::device::Device>::poll () anomalyco#11 <rune::native_surface::pipeline::SurfaceRenderer>::with_pipeline ({closure#1}) The thread is now joined in `Drop`, before the device is dropped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does. A
.hover(color)highlight now appears on the first frame under the pointer and fades out over 0.1 s, like a native sidebar or menu. Before, it sprang in withSNAPPY, so sidebar rows and buttons visibly trailed the pointer.How it works. When an element sets no
.hover_motion, the runtime picksAnim::INSTANTfor enter and a 0.1 s ease-out tween for exit. These are the curves rune-kit's menu already uses..hover_motion(enter, exit)still overrides both. Hover groups'group_opacityreveals follow the same default.Risk. Any app relying on the springy hover-in changes feel. Goldens aren't affected because they have no pointer.
Proof. New test
hover_lands_at_once_and_fades_out: fully hovered on the first frame, partly faded one frame after leaving, and gone by 0.5 s.cargo test -p rune -p rune-kit --features rune-kit/markdownpasses.