[modules/scroll] edge case error

This commit is contained in:
tobi-wan-kenobi 2022-09-11 16:00:35 +02:00
parent 3f97ea6a39
commit c40f59f7be

View file

@ -46,7 +46,7 @@ class Module(core.module.Module):
if widget.id == self.widgets()[0].id: if widget.id == self.widgets()[0].id:
if self.__offset == 0: if self.__offset == 0:
return ["warning"] return ["warning"]
if self.__offset + self.__width >= self.__widgetcount: elif self.__offset + self.__width >= self.__widgetcount:
return ["warning"] return ["warning"]
return [] return []