fix(linux): CSS keyframe animations, mouse enter/leave/move and ActivityIndicator spin by triniwiz · Pull Request #11623 · NativeScript/NativeScript
Repository navigation
fix(linux): CSS keyframe animations, mouse enter/leave/move and ActivityIndicator spin - #11623
Merged
triniwiz merged 3 commits into feat/linux from fix/linux-keyframes-pointer-spinner Nov 8, 2026
Merged
fix(linux): CSS keyframe animations, mouse enter/leave/move and ActivityIndicator spin #11623 triniwiz merged 3 commits into feat/linux from fix/linux-keyframes-pointer-spinner
Conversation
triniwiz commented Nov 8, 2026
Copy link Copy Markdown
Member
Linux fixes found running the shadcn desktop template on MasonKit.
CSS keyframe animations (ui/animation/index.linux.ts). KeyframeAnimation sets the style's keyframe values when it starts, and they win over local values. The Linux Animation wrote local values every frame, so nothing visible changed until the animation ended (animate-pulse never pulsed). Like iOS and Android, an animation with valueSource: 'keyframe' now writes the keyframe values.
mouseEnter, mouseLeave, mouseMove (ui/core/view/index.linux.ts). Linux raised none of them. While any has a listener, a GtkEventControllerMotion on the view's widget raises them (mouseMove with getX/getY in the view's coordinates) and keeps the hover visual state, as Windows does. MasonKit's :hover and onMouseLeave depend on these.
ActivityIndicator (ui/activity-indicator/index.linux.ts). When busy was set before the spinner was on screen, GTK left its CSS animation still until a theme change restyled it. Starting it from inside the map signal had the same result. It now starts on the turn after the spinner is mapped.
Tested on Ubuntu 22.04 (GTK 4.6, Pop!_OS): the skeleton pulses, chart hover and :hover styles work, and the spinner turns without a theme change.
fix(linux): CSS keyframe animations write keyframe values
701b612
KeyframeAnimation sets the style's keyframe values when it starts, and they win over local values, so the Linux Animation's local writes didn't show until the animation ended (animate-pulse never pulsed). Like iOS and Android, an animation with valueSource 'keyframe' now writes the keyframe values.
feat(linux): mouseEnter, mouseLeave and mouseMove events
b813a6b
A GtkEventControllerMotion, attached while any of them has a listener, raises the events (mouseMove with getX/getY) and keeps the hover visual state, as Windows does. MasonKit's :hover and onMouseLeave relied on them.
fix(linux): ActivityIndicator spins when busy is set before it's shown
61d876d
GTK left the spinner's CSS animation still when gtk_spinner_start ran before the widget was on screen (or inside its map signal), until a theme change restyled it. It now starts on the turn after the spinner is mapped.triniwiz mentioned this pull request Nov 8, 2026 fix: chart hover, one-line tooltips, input group text and font-manager on Linux triniwiz/nativescript-desktop-starter-template-shadcn#2 Merged
nx-cloud
Bot
commented
Nov 8, 2026
·
edited
Loading
Copy link Copy Markdown
|
View your CI Pipeline Execution ↗ for commit 61d876d
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
pkg-pr-new
Bot
commented
Nov 8, 2026
Copy link Copy Markdown
commit: |
9f94e72
into
feat/linux
Nov 8, 2026
5 of 7 checks passed
triniwiz
deleted the
fix/linux-keyframes-pointer-spinner
branch
November 8, 2026 10:15
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment