Why does the XScroll not work when it is turned into a widget

As you can see it works perfectly fine but when I try it in a widget window the Xscroll doesn’t work at all when my mouse is hovered on it. Only when I extend the window far enough so there is no Yscroll it works, but I didn’t need to do that before hand?