So after hours of troubleshooting I’ve narrowed the issue down to, it isn’t drag-able when other widgets on on top of it. The easy way to see this is to just compile my project. Comment line 48 of file src/gui/widgets
to see how it becomes undrag-able.
You can see a example of this in the panegrid example, where your cursor will change when hovered over the text verses the empty space.
I’m guessing my problem is that the row’s I use are filling the space.
fn title_bar(active: bool, pane: Pane) -> TitleBar<'static, Message, Renderer> {
TitleBar::new(
row!(
row!().width(Length::Fill),
row!("content").width(Length::Fill),
row!(
button("|").on_press(Message::PaneSplit(Axis::Vertical, pane)),
button("--").on_press(Message::PaneSplit(Axis::Horizontal, pane)),
button("x").on_press(Message::PaneClosed(pane)),
)
)
.align_items(Alignment::Center),
)
.style(Container::PaneGridTitleBar(active))
.padding(25) //adding padding makes a grabable section?
}