HearthSim / LotusTracker

Deck Tracker for Magic Arena [DEPRECATED]
https://www.mtglotusvalley.com/lotustracker
GNU Lesser General Public License v3.0
50 stars 10 forks source link

Overlay breaking when left clicking outside of options menu to close it #98

Open luxalpa opened 5 years ago

luxalpa commented 5 years ago

If you click on the Gear icon of the overlay that tracks your own deck, a menu pops up with different settings. If you then click somewhere outside of that menu into the game (not on the overlay itself), the overlay moves away from the mouse cursor. If your mouse cursor moves far enough away, the overlay disappears into negative coordinates and can not be brought back again.

I suggest adding a bounds clamp to the overlay coordinates (so they cant become negative) and ideally fixing the underlying bug (the overlay seems to interpret that click as a negative drag).