It is 90% functional, but there's one problem. When you hold a mouse button down on the titlebar, the Window is now draggable- when you move the mouse you move the window. When you release the mouse button the window no longer follows your mouse. But, if you move the mouse really fast, you outrun the
mousemove
event, and your window stops moving. This is annoying.My solution (which has yet to be implemented) is to create a "WindowDragProvider" class that provides the drag functionality for the entire browser window, not just the little "div" that's serving as my window. This will require rewriting most of the code I have so far. I am displeased by reality, but this does force me into a cleaner MVC design, so that's something.