Closed muesli closed 4 years ago
Fwiw, in hindsight I feel I should have followed the existing API a bit more closely and instead added a mouse.Wheel(delta)
as well as mouse.HorizontalWheel(delta)
. I'm not sure how you handle API compatibility, but seeing how you already released a v1.1.0, we may have to wait for a v2 to clean that up.
That's true. I should have caught that. Creating a v2 would be an option. The problem I currently see is that people might be using the old API via a direct import and not via gopkg.in or the like. This makes introducing a breaking change a tough call. Another option would be to introduce addtional methods, following your suggested signature and marking the current method as deprecated in the comments....
Just a few simple examples as we do for the other operations.