fix mouse-changed event never updating prior mouse position

This commit is contained in:
Jesse Plamondon-Willard 2017-04-07 15:36:45 -04:00
parent dbb9bd8430
commit 4f87a2b478
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,12 @@ See [log](https://github.com/Pathoschild/SMAPI/compare/1.9...1.10).
* SMAPI now rewrites many mods for compatibility with game updates, but some mods will need an update.
-->
## 1.9.1
See [log](https://github.com/Pathoschild/SMAPI/compare/1.9...1.9.1).
For mod developers:
* Fixed mouse-changed event never updating prior mouse position.
## 1.9
See [log](https://github.com/Pathoschild/SMAPI/compare/1.8...1.9).

View File

@ -874,7 +874,7 @@ namespace StardewModdingAPI.Framework
{
ControlEvents.InvokeMouseChanged(this.Monitor, this.MStatePrior, this.MStateNow, this.MPositionPrior, this.MPositionNow);
this.MStatePrior = this.MStateNow;
this.MPositionPrior = this.MPositionPrior;
this.MPositionPrior = this.MPositionNow;
}
}