mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-13 00:18:52 +01:00
Emulator romlist,favlist bug fix
This commit is contained in:
parent
c73e08eb69
commit
6776a8f686
@ -298,13 +298,16 @@ func (self *FavListPage) SyncScroll() {
|
|||||||
if self.Scrolled > 0 {
|
if self.Scrolled > 0 {
|
||||||
if y < 0 {
|
if y < 0 {
|
||||||
for i,_ := range self.MyList{
|
for i,_ := range self.MyList{
|
||||||
|
x,y = self.MyList[i].Coord()
|
||||||
_,h = self.MyList[i].Size()
|
_,h = self.MyList[i].Size()
|
||||||
|
|
||||||
self.MyList[i].NewCoord(x, y + self.Scrolled*h)
|
self.MyList[i].NewCoord(x, y + self.Scrolled*h)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if self.Scrolled < 0 {
|
}else if self.Scrolled < 0 {
|
||||||
if y + h > self.Height {
|
if y + h > self.Height {
|
||||||
for i,_ := range self.MyList {
|
for i,_ := range self.MyList {
|
||||||
|
x,y = self.MyList[i].Coord()
|
||||||
_,h = self.MyList[i].Size()
|
_,h = self.MyList[i].Size()
|
||||||
self.MyList[i].NewCoord(x,y + self.Scrolled*h)
|
self.MyList[i].NewCoord(x,y + self.Scrolled*h)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -325,6 +325,7 @@ func (self *RomListPage) SyncScroll() {
|
|||||||
if self.Scrolled > 0 {
|
if self.Scrolled > 0 {
|
||||||
if y < 0 {
|
if y < 0 {
|
||||||
for i,_ := range self.MyList{
|
for i,_ := range self.MyList{
|
||||||
|
x,y = self.MyList[i].Coord()
|
||||||
_, h = self.MyList[i].Size()
|
_, h = self.MyList[i].Size()
|
||||||
self.MyList[i].NewCoord(x, y + self.Scrolled*h)
|
self.MyList[i].NewCoord(x, y + self.Scrolled*h)
|
||||||
}
|
}
|
||||||
@ -332,6 +333,7 @@ func (self *RomListPage) SyncScroll() {
|
|||||||
}else if self.Scrolled < 0 {
|
}else if self.Scrolled < 0 {
|
||||||
if y + h > self.Height{
|
if y + h > self.Height{
|
||||||
for i,_ := range self.MyList{
|
for i,_ := range self.MyList{
|
||||||
|
x,y = self.MyList[i].Coord()
|
||||||
_, h = self.MyList[i].Size()
|
_, h = self.MyList[i].Size()
|
||||||
self.MyList[i].NewCoord(x, y + self.Scrolled*h)
|
self.MyList[i].NewCoord(x, y + self.Scrolled*h)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user