File tree Expand file tree Collapse file tree
srcs/Preflight.App/wwwroot Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name-template : " v$RESOLVED_VERSION"
22tag-template : " v$RESOLVED_VERSION"
3+ target-commitish : main
34categories :
45 - title : " ✨ Features"
56 labels : ["✨ enhancement", "feat"]
Original file line number Diff line number Diff line change 229229 if ( len > 0 ) html . style . setProperty ( '--pf-trail-length-px' , `${ len } px` ) ;
230230 } catch { /* getTotalLength can throw on detached / pre-layout SVG */ }
231231 }
232+ let _lastTrailProgress = null ;
232233 const syncTrail = ( ) => {
233234 const raw = html . style . getPropertyValue ( '--blazor-load-percentage' )
234235 || getComputedStyle ( html ) . getPropertyValue ( '--blazor-load-percentage' ) ;
235236 if ( ! raw ) return ;
236237 const num = parseFloat ( raw ) ;
237- if ( ! Number . isNaN ( num ) ) html . style . setProperty ( '--pf-trail-progress' , String ( num ) ) ;
238+ if ( Number . isNaN ( num ) ) return ;
239+ const next = String ( num ) ;
240+ if ( next === _lastTrailProgress ) return ;
241+ _lastTrailProgress = next ;
242+ html . style . setProperty ( '--pf-trail-progress' , next ) ;
238243 } ;
239244 syncTrail ( ) ;
240245 const trailObserver = new MutationObserver ( syncTrail ) ;
You can’t perform that action at this time.
0 commit comments