View Single Post
12-04-20, 10:27 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
offset is a parameter passed to the script which is then passed to your function as the second parameter.

Code:
frameScroll:SetScript("OnVerticalScroll", function (self, offset) 
	FauxScrollFrame_OnVerticalScroll(frameScroll, offset, 16, Cmdli.scrollerUpdate)  -- "Cmdli" is my vcurrent namespace
end)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote