Compare commits
No commits in common. "2722d19ecd529b12d58857a09ab27ca1662abc1e" and "0cdb116ec1e16d0214ef66763a3ef5826eaf1c04" have entirely different histories.
2722d19ecd
...
0cdb116ec1
@ -18,8 +18,6 @@ func NewHeading (level int, text string) *Heading {
|
||||
this.SetRole(tomo.R("objects", "Heading"))
|
||||
this.SetTag(fmt.Sprint(level), true)
|
||||
this.SetText(text)
|
||||
this.SetSelectable(true)
|
||||
this.SetFocusable(true)
|
||||
return this
|
||||
}
|
||||
|
||||
|
2
label.go
2
label.go
@ -13,7 +13,5 @@ func NewLabel (text string) *Label {
|
||||
this.SetRole(tomo.R("objects", "Label"))
|
||||
this.SetText(text)
|
||||
this.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle))
|
||||
this.SetSelectable(true)
|
||||
this.SetFocusable(true)
|
||||
return this
|
||||
}
|
||||
|
10
scrollbar.go
10
scrollbar.go
@ -235,16 +235,6 @@ func (this *Scrollbar) handleMouseMove () bool {
|
||||
|
||||
func (this *Scrollbar) handleScroll (x, y float64) bool {
|
||||
if this.layout.linked == nil { return false }
|
||||
|
||||
delta := (x + y)
|
||||
if this.layout.vertical {
|
||||
x = 0
|
||||
y = delta
|
||||
} else {
|
||||
x = delta
|
||||
y = 0
|
||||
}
|
||||
|
||||
this.layout.linked.ScrollTo (
|
||||
this.layout.linked.ContentBounds().Min.
|
||||
Sub(image.Pt(int(x), int(y))))
|
||||
|
Loading…
Reference in New Issue
Block a user