x/mobile/event/mouse: proposal: embed image.Point in Event #14027
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
mouse.Event currently looks like this:
What is the purpose of using float32 for X and Y? Is it ever the case that sub-pixel information is needed for mouse events?
I propose that we instead embed image.Point, as in https://godoc.org/9fans.net/go/draw#Mouse, to ease the following kind of code:
I would appreciate any comment on the reasoning behind the current approach, and whether my proposed approach could work. Thanks!
The text was updated successfully, but these errors were encountered: