Skip to content

Commit be507f2

Browse files
committed
a: use the mobile events in as/shiny
1 parent 585c0ac commit be507f2

File tree

10 files changed

+13
-11
lines changed

10 files changed

+13
-11
lines changed

border.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"github.com/as/ui/col"
55
"github.com/as/ui/win"
6-
"golang.org/x/mobile/event/mouse"
6+
"github.com/as/shiny/event/mouse"
77
)
88

99
func borderHit(e mouse.Event) bool {

drag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/as/ui/col"
88
"github.com/as/ui/tag"
99

10-
"golang.org/x/mobile/event/mouse"
10+
"github.com/as/shiny/event/mouse"
1111
)
1212

1313
var (

guide

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ Dump
2727
a -l a.dump
2828

2929
# View an image
30-
[TBD]
30+
[TBD]
31+
32+
walk

imports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88

99
"github.com/as/ui/tag"
10-
"golang.org/x/mobile/event/key"
10+
"github.com/as/shiny/event/key"
1111
)
1212

1313
type ErrGoImports struct {

kbd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55

66
"github.com/as/shiny/screen"
77
"github.com/as/text/find"
8-
"github.com/as/text/kbd"
8+
"github.com/as/ui/kbd"
99
"github.com/as/ui/tag"
1010
"github.com/as/ui/win"
11-
"golang.org/x/mobile/event/key"
11+
"github.com/as/shiny/event/key"
1212
)
1313

1414
type Window interface {

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99

1010
"github.com/as/shiny/screen"
11-
"golang.org/x/mobile/event/lifecycle"
11+
"github.com/as/shiny/event/lifecycle"
1212

1313
"github.com/as/edit"
1414
"github.com/as/ui/col"

mouse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/as/text/find"
1010
"github.com/as/ui/tag"
1111
"github.com/as/ui/win"
12-
"golang.org/x/mobile/event/mouse"
12+
"github.com/as/shiny/event/mouse"
1313
)
1414

1515
func Button(n uint) uint {

paint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"golang.org/x/mobile/event/paint"
4+
"github.com/as/shiny/event/paint"
55
)
66

77
func repaint() {

scroll.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"github.com/as/ui/tag"
5-
"golang.org/x/mobile/event/mouse"
5+
"github.com/as/shiny/event/mouse"
66
)
77

88
type ScrollEvent struct {

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/as/ui/tag"
77
"github.com/as/ui/win"
8-
"golang.org/x/mobile/event/mouse"
8+
"github.com/as/shiny/event/mouse"
99
)
1010

1111
const (

0 commit comments

Comments
 (0)