fix mouse-changed event never updating prior mouse position
This commit is contained in:
parent
dbb9bd8430
commit
4f87a2b478
|
@ -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).
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue