Skip to content

Commit

Permalink
Fix trackSwingInterop type
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Feb 29, 2024
1 parent d395ffe commit 2e4b44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ internal class SwingInteropContainer(
* @param component The Swing component that matches the current node.
*/
internal fun Modifier.trackSwingInterop(
component: Component
component: InteropComponent
): Modifier = this then TrackInteropModifierElement(
nativeView = component
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public fun <T : Component> SwingPanel(
}.drawBehind {
// Clear interop area to make visible the component under our canvas.
drawRect(Color.Transparent, blendMode = BlendMode.Clear)
}.trackSwingInterop(componentInfo.container)
}.trackSwingInterop(componentInfo)
.then(InteropPointerInputModifier(componentInfo))
) {
focusSwitcher.Content()
Expand Down

0 comments on commit 2e4b44a

Please sign in to comment.