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