aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-11 17:57:15 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-11 17:57:15 +0300
commitff7ee333a1028850337aa332532cbc23c7bdde14 (patch)
tree48e8c5d99bfba4f4d981f54b0816646cd52da4db /ui/view-main.go
parentc0705b02a08bc9054ab8dca0363248bf72896b3d (diff)
Rename UIString to TString, move ansimage to lib/ and switch to tcell fork
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index 3a6c38d..056f8a0 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -23,7 +23,7 @@ import (
"time"
"unicode"
- "github.com/gdamore/tcell"
+ "maunium.net/go/tcell"
"github.com/mattn/go-runewidth"
"maunium.net/go/gomatrix"
"maunium.net/go/gomuks/config"
@@ -230,6 +230,11 @@ func (view *MainView) MouseEventHandler(roomView *RoomView, event *tcell.EventMo
x, y := event.Position()
switch event.Buttons() {
+ case tcell.Button1:
+ mx, my, mw, mh := msgView.GetRect()
+ if x >= mx && y >= my && x < mx+mw && y < my+mh {
+ debug.Print("Message view clicked")
+ }
case tcell.WheelUp:
if msgView.IsAtTop() {
go view.LoadHistory(roomView.Room.ID, false)