SecondHalfGames / yakui

yakui is a declarative Rust UI library for games
Apache License 2.0
237 stars 21 forks source link

draggable example account for the start position #170

Closed cybersoulK closed 4 months ago

cybersoulK commented 5 months ago

Draggable example account for the start position

LPGhatguy commented 4 months ago

I tested both the current main branch and this PR. The draggable example currently does work and the change from this PR is unexpected.

Current Main Branch

https://github.com/user-attachments/assets/d7afca86-d15b-4012-bb85-bae0d7ba2736

This PR

https://github.com/user-attachments/assets/d5a34f80-28ad-42b2-b833-071fd3b5ca7f

cybersoulK commented 4 months ago

it has been quite a while since then, but i am pretty sure that if the element is located somewhere else other than the Left Top corner (you can try padding), then the current example does not work well, like video N.1