Hello.
I need help on my scrollingframe.
I want to not allow scrolling, but still change the canvasposition.
Hello.
I need help on my scrollingframe.
I want to not allow scrolling, but still change the canvasposition.
Please remember that this is a site only for scripting support.
There is a property in the scrolling frame called ''ScrollingEnabled''
Ok I figured it out.
I was supposed to use MouseMoved but it wouldn't work
local ScrollingFrame = script.Parent
ScrollingFrame.MouseMoved:Connect(function(X,Y)
print(X,Y)
end)
This is an example
This for some reason doesn't work when you turn off ScrollingEnabled.
So you'll have to create your own MouseMoved Event
local ScrollingFrame = script.Parent
ScrollingFrame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement and input.UserInputState ~= Enum.UserInputState.End then
print(input.Position.X,input.Position.Y)
end
end)
There is a property in the ScrollingFrame called ScrollingEnable and you have to uncheck it to disable it.
I know.
Okay.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Yeah Ik but it won't work