widget: make Clickable.Clicked use a pointer receiver

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-02 10:19:50 +02:00
parent f86e1a6421
commit 3ef841bd07
+1 -1
View File
@@ -51,7 +51,7 @@ func (b *Clickable) Clicked() bool {
}
// Clicks returns and clear the clicks since the last call to Clicks.
func (b Clickable) Clicks() []Click {
func (b *Clickable) Clicks() []Click {
clicks := b.clicks
b.clicks = nil
b.prevClicks = 0