@ -23,7 +23,6 @@ const (
type dragger struct {
events chan x.GenericEvent
startedDrag bool
start [2]int16
end [2]int16
}
@ -50,11 +49,9 @@ func (s *dragger) watch() int {
if generic.GetEventCode() == Pressed {
s.startedDrag = true
s.start = [2]int16{event.EventX, event.EventY}
} else {
s.end = [2]int16{event.EventX, event.EventY}
s.startedDrag = false
return s.distance()