Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Smoother scrolling in skins category
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbith committed Feb 20, 2022
1 parent 8b6f50b commit de70846
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/fields.lua
Expand Up @@ -14,6 +14,11 @@ local function inv_fields(player, data, fields)
local inv = player:get_inventory()
local sb_inv = fields.scrbar_inv

if sb_inv and sub(sb_inv, 1, 3) == "CHG" then
data.scrbar_inv = tonumber(match(sb_inv, "%d+"))
return
end

if fields.skins then
local id = tonumber(fields.skins)
local _skins = skins.get_skinlist_for_player(name)
Expand Down Expand Up @@ -169,10 +174,6 @@ local function inv_fields(player, data, fields)
data.bag = bagstack:to_string()
data.bag_rename = nil

elseif sb_inv and sub(sb_inv, 1, 3) == "CHG" then
data.scrbar_inv = tonumber(match(sb_inv, "%d+"))
return

elseif fields.waypoint_add then
local max_waypoints = i3.settings.max_waypoints

Expand Down

0 comments on commit de70846

Please sign in to comment.