File tree Expand file tree Collapse file tree 3 files changed +30
-10
lines changed 
convention-plugins/src/main/kotlin 
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ plugins {
33    signing
44}
55
6+ val  githubUrl =  " https://github.com" 
7+ val  projectUrl =  " $githubUrl /miuix-kotlin-multiplatform/miuix" 
8+ 
69publishing {
710    publications.withType<MavenPublication > {
811        //  Stub javadoc.jar artifact
@@ -15,23 +18,37 @@ publishing {
1518        pom {
1619            name.set(" miuix"  )
1720            description.set(" A UI library for Compose MultiPlatform"  )
18-             url.set(" https://github.com/miuix-kotlin-multiplatform/miuix"  )
19- 
21+             url.set(projectUrl)
2022            licenses {
2123                license {
22-                     name.set(" Apache- 2.0"  )
23-                     url.set(" https://github.com/miuix-kotlin-multiplatform/miuix /blob/main/LICENSE"  )
24+                     name.set(" The  Apache Software License, Version  2.0"  )
25+                     url.set(" $projectUrl /blob/main/LICENSE"  )
2426                }
2527            }
28+             issueManagement {
29+                 system.set(" Github"  )
30+                 url.set(" $projectUrl /issues"  )
31+             }
32+             scm {
33+                 connection.set(" $projectUrl .git"  )
34+                 url.set(projectUrl)
35+             }
2636            developers {
2737                developer {
2838                    id.set(" YuKongA"  )
2939                    name.set(" YuKongA"  )
30-                     url.set(" https://github.com/YuKongA"  )
40+                     url.set(" $githubUrl /YuKongA"  )
41+                 }
42+                 developer {
43+                     id.set(" HowieHChen"  )
44+                     name.set(" Howie"  )
45+                     url.set(" $githubUrl /HowieHChen"  )
46+                 }
47+                 developer {
48+                     id.set(" Voemp"  )
49+                     name.set(" Voemp"  )
50+                     url.set(" $githubUrl /Voemp"  )
3151                }
32-             }
33-             scm {
34-                 url.set(" https://github.com/miuix-kotlin-multiplatform/miuix"  )
3552            }
3653        }
3754    }
Original file line number Diff line number Diff line change 11allprojects {
22    group =  " top.yukonga.miuix.kmp" 
3-     version =  " 0.4.0 " 
3+     version =  " 0.4.1 " 
44}
Original file line number Diff line number Diff line change @@ -682,7 +682,10 @@ private fun TopAppBarLayout(
682682        val  layoutHeight =  lerp(
683683            start =  collapsedHeight,
684684            stop =  expandedHeight,
685-             fraction =  1f  -  (abs(scrolledOffset.offset()) /  expandedHeightPx).coerceIn(0f , 1f )
685+             fraction =  if  (expandedHeightPx >  0f ) {
686+                 val  offset =  scrolledOffset.offset()
687+                 if  (offset.isNaN()) 1f  else  (1f  -  (abs(offset) /  expandedHeightPx).coerceIn(0f , 1f ))
688+             } else  1f 
686689        ).toFloat().roundToInt()
687690
688691        layout(constraints.maxWidth, layoutHeight) {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments