Skip to content

Dialogs lags when dragging after clicking the title text #30

@pe3ep

Description

@pe3ep

I've noticed that when I start dragging the dialog using it's body it moves smoothly as expected, but when I start dragging it using the text inside the title it starts to lag

here's a video with that happening

2025-07-05.16-03-52.mp4

mc version: 1.21.5
sheeplib version: 1.3.6+1.21.5

dialog code used in the video

class SuppliesDialog(x: Int, y: Int) : Dialog(x, y), Themed by TridentTheme {
    override val title: DialogTitleWidget = TextTitleWidget(this, Component.literal("Test title"))
    override fun layout(): GridLayout = grid {
        val minecraftFont = Minecraft.getInstance().font
        StringWidget(Component.literal("Hello world"), minecraftFont).at(0,0)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions