Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I stop my scrollingframe from scrolling?

Hello.

I need help on my scrollingframe.

I want to not allow scrolling, but still change the canvasposition.

3 answers

Please remember that this is a site only for scripting support.

There is a property in the scrolling frame called ''ScrollingEnabled''

1 comment

0

Yeah Ik but it won't work

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.

2 comments

0

I know.

0

Okay.

This discussion is preserved as it was. New answers, comments, and votes are closed.