Various GUI improvements #19

Merged
jaby merged 5 commits from topic/jb/gui-improvements into main 2025-03-12 18:42:19 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit a0368c1e51 - Show all commits

View File

@ -112,11 +112,11 @@ export component MainTab inherits Rectangle {
function update_viewport() {
if abs(self.viewport-x) + self.width > self.viewport-width {
self.viewport-x = 0;
self.viewport-x += (self.width + abs(self.viewport-x)) - self.viewport-width;
}
if abs(self.viewport-y) + self.height > self.viewport-height {
self.viewport-y = 0;
self.viewport-y += (self.height + abs(self.viewport-y)) - self.viewport-height;
}
}
}