Jypeli-JYU / Jypeli

A simple educational C# game programming library built on top of Silk.NET.
26 stars 4 forks source link

Improve window moving behaviour #17

Closed Anttifer closed 4 years ago

Anttifer commented 4 years ago

Now it is possible to prevent windows from being dragged if widgets inside them need to capture mouse events.

With the current selection of Widgets, this allows Sliders to be used inside windows and PushButton activation to be cancelled by moving the cursor off the button before releasing the left mouse button. These operations were previously impossible as the window would just follow the cursor.

Also fixed a minor bug in Slider where relative transformations were used instead of absolute.