MouseMove event and increase window title font size
This commit is contained in:
parent
f6703bf1ba
commit
e8d4e7008b
|
@ -15,6 +15,7 @@ type Event int
|
|||
const (
|
||||
NullEvent Event = iota
|
||||
MouseOver
|
||||
MouseMove
|
||||
MouseOut
|
||||
MouseDown
|
||||
MouseUp
|
||||
|
@ -351,6 +352,12 @@ func (s *Supervisor) runWidgetEvents(XY render.Point, ev *event.State,
|
|||
s.hovering[id] = nil
|
||||
}
|
||||
|
||||
// Mouse movement. NOTE: it is intentional that this fires on
|
||||
// every tick even if XY was the same as last time.
|
||||
handle(w.Event(MouseMove, EventData{
|
||||
Point: XY,
|
||||
}))
|
||||
|
||||
isClicked, _ := s.clicked[id]
|
||||
if ev.Button1 {
|
||||
if !isClicked {
|
||||
|
|
Loading…
Reference in New Issue
Block a user